[libcxx-commits] [PATCH] D133323: [libc++] Bump _LIBCPP_STD_VER to the next expected C++ version

Marshall Clow via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 10 19:56:52 PDT 2022


mclow.lists added inline comments.


================
Comment at: libcxx/include/__config:51
+// Expected release year of the next C++ version
+#      define _LIBCPP_STD_VER 23
 #    endif
----------------
philnik wrote:
> Mordante wrote:
> > Please do the same for the test macro including the comment.
> The test macro is defined as 99 currently, so we can already use `TEST_STD_VER >= 23`.
Until C++23 is released, I would recommend not changing these macros.

The test macro is defined differently than the one in __config in an attempt to make it harder for people to depend on numbers that are not guaranteed to be stable.

The code `XXX_STD_VER > 20` will work for all standard versions later than C++20.




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133323/new/

https://reviews.llvm.org/D133323



More information about the libcxx-commits mailing list