From 675dd5cc4f0494ea4362ce4de26805ea4801de1a Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 10 Jun 2014 18:52:57 +0000 Subject: [PATCH] Mark assign to be constepr only in c++14; can't have constexpr fns that return void in C++11 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@210562 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/support/constexpr_char_traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/support/constexpr_char_traits.hpp b/test/support/constexpr_char_traits.hpp index 294401640..a2a690e9e 100644 --- a/test/support/constexpr_char_traits.hpp +++ b/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