From fc3f80badff6057dc662d1f426b7a78cdeb7bf48 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 24 Aug 2013 21:31:37 +0000 Subject: [PATCH] G M: Improve support for compilers not supporting defaulted functions. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@189184 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 1 + include/system_error | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/__config b/include/__config index e4caecf0..d7e9014c 100644 --- a/include/__config +++ b/include/__config @@ -415,6 +415,7 @@ using namespace _LIBCPP_NAMESPACE __attribute__((__strong__)); #define _LIBCPP_HAS_NO_CONSTEXPR #define _LIBCPP_HAS_NO_UNICODE_CHARS #define _LIBCPP_HAS_NO_DELETED_FUNCTIONS +#define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS #define __alignof__ __alignof #define _LIBCPP_NORETURN __declspec(noreturn) #define _ALIGNAS(x) __declspec(align(x)) diff --git a/include/system_error b/include/system_error index afc73f29..66bf6d6c 100644 --- a/include/system_error +++ b/include/system_error @@ -371,7 +371,7 @@ public: error_category() _NOEXCEPT; #else _LIBCPP_ALWAYS_INLINE - _LIBCPP_CONSTEXPR_AFTER_CXX11 error_category() _NOEXCEPT = default; + _LIBCPP_CONSTEXPR_AFTER_CXX11 error_category() _NOEXCEPT _LIBCPP_DEFAULT; #endif private: error_category(const error_category&);// = delete;