Skip to content

Check for __cpp_lib_remove_cvref as well#5760

Closed
pfultz2 wants to merge 1 commit into
pybind:masterfrom
pfultz2:patch-1
Closed

Check for __cpp_lib_remove_cvref as well#5760
pfultz2 wants to merge 1 commit into
pybind:masterfrom
pfultz2:patch-1

Conversation

@pfultz2
Copy link
Copy Markdown
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.
@pfultz2 pfultz2 closed this Jul 21, 2025
@pfultz2 pfultz2 deleted the patch-1 branch July 21, 2025 16:03
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.

1 participant