[libcxx-commits] [libcxx] 8607539 - [libc++] Bump _LIBCPP_STD_VER to the next expected C++ version

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 10 00:53:29 PDT 2022


Author: Nikolas Klauser
Date: 2022-09-10T09:53:20+02:00
New Revision: 860753934ca3865a1f680531924c43bafbf1917a

URL: https://github.com/llvm/llvm-project/commit/860753934ca3865a1f680531924c43bafbf1917a
DIFF: https://github.com/llvm/llvm-project/commit/860753934ca3865a1f680531924c43bafbf1917a.diff

LOG: [libc++] Bump _LIBCPP_STD_VER to the next expected C++ version

We've decided to use `_LIBCPP_STD_VER >= xy` while discussing to change the constexpr macros, so let's finally bump the version macro to match that.

Reviewed By: ldionne, Mordante, huixie90, #libc, avogelsgesang

Spies: avogelsgesang, libcxx-commits

Differential Revision: https://reviews.llvm.org/D133323

Added: 
    

Modified: 
    libcxx/include/__config

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__config b/libcxx/include/__config
index 77b15934746ec..364607ef1c864 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -47,7 +47,8 @@
 #    elif __cplusplus <= 202002L
 #      define _LIBCPP_STD_VER 20
 #    else
-#      define _LIBCPP_STD_VER 22 // current year, or date of c++2b ratification
+// Expected release year of the next C++ standard
+#      define _LIBCPP_STD_VER 23
 #    endif
 #  endif // _LIBCPP_STD_VER
 


        


More information about the libcxx-commits mailing list