From aa3f7eae0256d1187be4a567f26065ba5960bec0 Mon Sep 17 00:00:00 2001 From: Gennaro Prota Date: Wed, 17 Dec 2025 19:30:59 +0100 Subject: [PATCH] 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. --- test/constexpr_tests.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/constexpr_tests.hpp b/test/constexpr_tests.hpp index 636a4e9..abe73a2 100644 --- a/test/constexpr_tests.hpp +++ b/test/constexpr_tests.hpp @@ -667,7 +667,7 @@ testConstantEvaluation() #endif } -#ifdef BOOST_STATIC_STRING_CPP20 +#if __cpp_nontype_template_args >= 201911L template X> struct nttp_primary