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


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to