mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Fixed C++ standard check for concepts
This commit is contained in:
parent
969c043020
commit
2106afd56a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user