Skip to content

Conversation

pfultz2
Copy link
Contributor

@pfultz2 pfultz2 commented Jul 21, 2025

Description

C++20 can be enabled while the C++ runtime is still much older so use the feature macro to check for it.

For example, we are using the latest clang with c++23 on SLES, while the gcc version is 7.

Suggested changelog entry:

  • Support C++20 on platforms that have older c++ runtimes.

C++20 can be enabled while the C++ runtime is still much older so use the feature macro to check for it. 

For example, we are using the latest clang with c++23 on SLES, while the gcc version is 7.
Copy link
Collaborator

@rwgk rwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rwgk rwgk merged commit 7f5eea4 into pybind:master Jul 24, 2025
223 of 226 checks passed
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Jul 24, 2025
@henryiii henryiii changed the title Check for __cpp_lib_remove_cvref as well fix: check for __cpp_lib_remove_cvref as well Aug 21, 2025
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants