From 9b333911476cb204b6edacf48ed18be4d2cdc0bb Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Fri, 9 Jul 2021 10:54:11 -0700 Subject: [PATCH] subsys/cpp: add support for C++2b Add the ability to enable support for C++2B (aka 23) to the build system. Signed-off-by: Dan Kalowsky --- CMakeLists.txt | 2 ++ subsys/cpp/Kconfig | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e9c176eb0b..c3d53b8db65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,6 +169,8 @@ if(CONFIG_CPLUSPLUS) set(STD_CPP_DIALECT_FLAGS $) elseif(CONFIG_STD_CPP20) set(STD_CPP_DIALECT_FLAGS $) + elseif(CONFIG_STD_CPP2B) + set(STD_CPP_DIALECT_FLAGS $) else() assert(0 "Unreachable code. Expected C++ standard to have been chosen. See Kconfig.zephyr.") endif() diff --git a/subsys/cpp/Kconfig b/subsys/cpp/Kconfig index 8172ba9be8f..2faeb766e17 100644 --- a/subsys/cpp/Kconfig +++ b/subsys/cpp/Kconfig @@ -42,6 +42,11 @@ config STD_CPP20 help 2020 C++ standard, previously known as C++2A. +config STD_CPP2B + bool "C++ 2b" + help + Next revision of the C++ standard, which is expected to be published in 2023. + endchoice config LIB_CPLUSPLUS