From cf0b816bc1c52b26de9eaa2ea42641412151d38d Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 2 Jan 2022 14:20:10 +0000 Subject: [PATCH] Update to support C++20 --- include/etl/profiles/determine_compiler_language_support.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/profiles/determine_compiler_language_support.h b/include/etl/profiles/determine_compiler_language_support.h index f2cbe9b1..d3ce9902 100644 --- a/include/etl/profiles/determine_compiler_language_support.h +++ b/include/etl/profiles/determine_compiler_language_support.h @@ -41,7 +41,7 @@ SOFTWARE. #define ETL_CPP11_SUPPORTED (_MSC_VER >= 1600) #define ETL_CPP14_SUPPORTED (_MSC_VER >= 1900) #define ETL_CPP17_SUPPORTED (_MSC_VER >= 1914) - #define ETL_CPP20_SUPPORTED 0 + #define ETL_CPP20_SUPPORTED (_MSC_VER >= 1929) #elif defined(ETL_COMPILER_ARM5) #define ETL_CPP11_SUPPORTED 0 #define ETL_CPP14_SUPPORTED 0 @@ -51,7 +51,7 @@ SOFTWARE. #define ETL_CPP11_SUPPORTED (__cplusplus >= 201103L) #define ETL_CPP14_SUPPORTED (__cplusplus >= 201402L) #define ETL_CPP17_SUPPORTED (__cplusplus >= 201703L) - #define ETL_CPP20_SUPPORTED 0 + #define ETL_CPP20_SUPPORTED (__cplusplus >= 202002L) #endif #else #define ETL_CPP11_SUPPORTED 0