Support C++20 feature testing

Open
#108 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
compilers

Research direction

Start by reading the issue and the linked C++20 feature-test macro reference. Determine the intended scope for __has_cpp_attribute() and the other language feature macros, including whether return values should be user-programmable. Done means the supported behavior and configuration expectations are agreed and implemented with appropriate coverage.

Written by the indexing model from the issue text.

Description

C++20 introduces a special predefined macro __has_cpp_attribute() along with a set of predefined language feature macros, all described here. I think that at minimum __has_cpp_attribute() should be defined in C++20 mode, even if it always evaluates to true.

What's less clear to me is whether, and how, the return values should be user-programmable (e.g. for emulating a specific compiler version).

Dominant language
C++
Stars
29
Forks
55
PR merge metrics
No merged PRs in 30d

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.

More from boostorg/wave

All issues in boostorg/wave

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.