mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-19 04:42:12 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user