boostorg / hana

Your standard library for metaprogramming
http://boostorg.github.io/hana
Boost Software License 1.0
1.66k stars 217 forks source link

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

Open ecatmur opened 11 months ago

ecatmur commented 11 months ago

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.