Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use C++20 for ""_s if available #521

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ecatmur
Copy link

@ecatmur ecatmur commented Aug 8, 2023

In C++20, we are supposed to use CTAD NTTPs to implement string UDL templates.

Continue to use BOOST_HANA_CONFIG_ENABLE_STRING_UDL to indicate that the string UDL template is available, but enable that macro by default if C++20 is detected.

Compiler support detection is a bit involved, unfortunately, since there isn't a specific feature test macro for it and it appears to have been added in point releases for some compilers.

ecatmur and others added 5 commits August 8, 2023 06:39
In C++20, we are supposed to use CTAD NTTPs to implement string UDL templates.

Continue to use BOOST_HANA_CONFIG_ENABLE_STRING_UDL to indicate that the string UDL template is available, but enable that macro by default if C++20 is detected.
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