From 2106afd56ab539e28fd08f451d9dfbaab70346b2 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 19 Dec 2025 07:37:24 +0000 Subject: [PATCH] Fixed C++ standard check for concepts --- include/etl/concepts.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/etl/concepts.h b/include/etl/concepts.h index 4e40783d..16be5b79 100644 --- a/include/etl/concepts.h +++ b/include/etl/concepts.h @@ -36,6 +36,10 @@ SOFTWARE. #include "utility.h" #include "type_traits.h" +#if ETL_NOT_USING_CPP20 && !defined(ETL_IN_UNIT_TEST) + #error NOT SUPPORTED FOR BELOW C++20 +#endif + #if ETL_USING_CPP20 #if ETL_USING_STL @@ -137,8 +141,5 @@ namespace etl #endif } - -#else - #error This header requires C++20. Please set the compiler standard to at least C++20. #endif #endif