[libcxx] r186323 - Add macro _LIBCPP_CONSTEXPR_AFTER_CXX11 for functions that have been marked constexpr post C++11

Marshall Clow mclow.lists at gmail.com
Mon Jul 15 07:57:20 PDT 2013


Author: marshall
Date: Mon Jul 15 09:57:19 2013
New Revision: 186323

URL: http://llvm.org/viewvc/llvm-project?rev=186323&view=rev
Log:
Add macro _LIBCPP_CONSTEXPR_AFTER_CXX11 for functions that have been marked constexpr post C++11

Modified:
    libcxx/trunk/include/__config

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=186323&r1=186322&r2=186323&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Mon Jul 15 09:57:19 2013
@@ -518,6 +518,13 @@ template <unsigned> struct __static_asse
 #  endif
 #endif  // _LIBCPP_STD_VER
 
+#if _LIBCPP_STD_VER <= 11
+#define _LIBCPP_CONSTEXPR_AFTER_CXX11
+#else
+#define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr
+#endif
+
+
 #ifdef _LIBCPP_DEBUG2
 #   include <__debug>
 #else





More information about the cfe-commits mailing list