summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/constexpr_char_traits.hpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-06-10 18:52:57 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-06-10 18:52:57 +0000
commitd0817f526c23c734af0861dd56af63c58f7ef753 (patch)
treebc640a527c3a3b1aa7bf77ed0fb4e923f65d54ec /libcxx/test/support/constexpr_char_traits.hpp
parent9b0af34d9641156ee1c0ff7e1d1ff9386dd55d35 (diff)
downloadbcm5719-llvm-d0817f526c23c734af0861dd56af63c58f7ef753.tar.gz
bcm5719-llvm-d0817f526c23c734af0861dd56af63c58f7ef753.zip
Mark assign to be constepr only in c++14; can't have constexpr fns that return void in C++11
llvm-svn: 210562
Diffstat (limited to 'libcxx/test/support/constexpr_char_traits.hpp')
-rw-r--r--libcxx/test/support/constexpr_char_traits.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/support/constexpr_char_traits.hpp b/libcxx/test/support/constexpr_char_traits.hpp
index 2944016408e..a2a690e9e66 100644
--- a/libcxx/test/support/constexpr_char_traits.hpp
+++ b/libcxx/test/support/constexpr_char_traits.hpp
@@ -24,7 +24,7 @@ struct constexpr_char_traits
typedef std::streampos pos_type;
typedef std::mbstate_t state_type;
- static _LIBCPP_CONSTEXPR void assign(char_type& __c1, const char_type& __c2) _NOEXCEPT
+ static _LIBCPP_CONSTEXPR_AFTER_CXX11 void assign(char_type& __c1, const char_type& __c2) _NOEXCEPT
{__c1 = __c2;}
static _LIBCPP_CONSTEXPR bool eq(char_type __c1, char_type __c2) _NOEXCEPT
OpenPOWER on IntegriCloud