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