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