Fixed C++ standard check for concepts

This commit is contained in:
John Wellbelove 2025-12-19 07:37:24 +00:00
parent 969c043020
commit 2106afd56a

View File

@ -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