Skip to content

Commit 328752e

Browse files
committed
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.
1 parent 6d2e7c9 commit 328752e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/constexpr_tests.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ testConstantEvaluation()
666666
#endif
667667
}
668668

669-
#ifdef BOOST_STATIC_STRING_CPP20
669+
#if __cpp_nontype_template_args >= 201911L
670670

671671
template<basic_static_string<32, char, cxper_char_traits> X>
672672
struct nttp_primary

0 commit comments

Comments
 (0)