[libcxx] r283993 - Fix use of C++14 constexpr in C++11
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 12 02:20:59 PDT 2016
Author: ericwf
Date: Wed Oct 12 04:20:58 2016
New Revision: 283993
URL: http://llvm.org/viewvc/llvm-project?rev=283993&view=rev
Log:
Fix use of C++14 constexpr in C++11
Modified:
libcxx/trunk/test/support/archetypes.ipp
Modified: libcxx/trunk/test/support/archetypes.ipp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/archetypes.ipp?rev=283993&r1=283992&r2=283993&view=diff
==============================================================================
--- libcxx/trunk/test/support/archetypes.ipp (original)
+++ libcxx/trunk/test/support/archetypes.ipp Wed Oct 12 04:20:58 2016
@@ -9,7 +9,11 @@
#define DEFINE_CONSTEXPR constexpr
#endif
#ifndef DEFINE_ASSIGN_CONSTEXPR
+#if TEST_STD_VER >= 14
#define DEFINE_ASSIGN_CONSTEXPR DEFINE_CONSTEXPR
+#else
+#define DEFINE_ASSIGN_CONSTEXPR
+#endif
#endif
#ifndef DEFINE_CTOR
#define DEFINE_CTOR = default
More information about the cfe-commits
mailing list