Condition the NTTP tests on __cpp_nontype_template_args

They were conditioned on detection of C++20 via __cplusplus, but Clang
10 and 11 don't support class types as NTTP, even though they report
C++20 via __cplusplus when -std=c++20 is used.
This commit is contained in:
Gennaro Prota
2025-12-17 19:30:59 +01:00
parent 739060f809
commit aa3f7eae02

View File

@@ -667,7 +667,7 @@ testConstantEvaluation()
#endif
}
#ifdef BOOST_STATIC_STRING_CPP20
#if __cpp_nontype_template_args >= 201911L
template<basic_static_string<32, char, cxper_char_traits> X>
struct nttp_primary