Consider the use of named alternatives for C++ standard
Open
Nobody has claimed this yet.
enhancement
stale-notified
- Dominant language
- C++
- Stars
- 1.1k
- Forks
- 456
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 165
Description
Consider the use of named alternatives. Something like:
enum StdCpp {
cpp20, cpp17
};
cl::opt< StdCpp > stdCpp("std", cl::desc("Specify the C++ standard:"),
cl::values(
clEnumValN(cpp20, "c++20", "use c++20 standard"),
clEnumValN(cpp17, "c++17", "use c++17 standard")),
cl::init(cpp20)
);
Originally posted by @boschmitt in https://github.com/NVIDIA/cuda-quantum/pull/973#discussion_r1409064870
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a file or test. Start by locating the cl::opt option for the "std" command-line argument and review the discussion from PR #973. Done means the C++ standard choices use named alternatives such as "c++20" and "c++17" with the intended default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100