openSUSE / openSUSE/libsolv

`requires` is a keyword in C++20

Open
#372 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
609
Forks
177
PR merge metrics
No merged PRs in 30d

Description

As you might be aware I am using libsolv from a C++ project.

Unfortunately requires becomes a keyword with C++20 which will prevent the solvable.h header from compiling properly.

I was accidentally running into this problem. I am not using C++20 yet, so it's not an immediate problem, but I just wanted to let you know that this might come up.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting solvable.h and compiling a minimal C++20 consumer to reproduce the reported keyword conflict around requires. Confirm the affected declaration and establish what header-level change would let solvable.h compile under C++20 without breaking existing users.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.