projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e68f1ad
)
Fix use of C++14 constexpr in C++11
author
Eric Fiselier
<eric@efcs.ca>
Wed, 12 Oct 2016 09:20:58 +0000
(09:20 +0000)
committer
Eric Fiselier
<eric@efcs.ca>
Wed, 12 Oct 2016 09:20:58 +0000
(09:20 +0000)
llvm-svn: 283993
libcxx/test/support/archetypes.ipp
patch
|
blob
|
history
diff --git
a/libcxx/test/support/archetypes.ipp
b/libcxx/test/support/archetypes.ipp
index
1f94ddc
..
a86e584
100644
(file)
--- a/
libcxx/test/support/archetypes.ipp
+++ b/
libcxx/test/support/archetypes.ipp
@@
-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