From ac93d0ebf2b1b91f6759df2e09218ed44f7e5268 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 15 Jul 2013 14:57:19 +0000 Subject: [PATCH] Add macro _LIBCPP_CONSTEXPR_AFTER_CXX11 for functions that have been marked constexpr post C++11 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@186323 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/__config b/include/__config index ca850d39..f003e5b0 100644 --- a/include/__config +++ b/include/__config @@ -518,6 +518,13 @@ template struct __static_assert_check {}; # 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