diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2013-08-21 02:57:19 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2013-08-21 02:57:19 +0000 |
| commit | a86d516213b677b6524b2152977ea9be82fdd17d (patch) | |
| tree | dc477e4997e16b287068d37cb15c2af403fb17ca /libcxx/include/system_error | |
| parent | 63cc55b4793071000f8e61d86fdfbb391b87869f (diff) | |
| download | bcm5719-llvm-a86d516213b677b6524b2152977ea9be82fdd17d.tar.gz bcm5719-llvm-a86d516213b677b6524b2152977ea9be82fdd17d.zip | |
LWG 2145 - mark constructor for std::error_category as inline and constexpr. Leave the (existing, out-of-line, non-constexpr) in the dylib for compatibility with existing programs)
llvm-svn: 188858
Diffstat (limited to 'libcxx/include/system_error')
| -rw-r--r-- | libcxx/include/system_error | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/include/system_error b/libcxx/include/system_error index ac3fb4474d7..df668cc64c6 100644 --- a/libcxx/include/system_error +++ b/libcxx/include/system_error @@ -22,6 +22,7 @@ class error_category public: virtual ~error_category() noexcept; + constexpr error_category(); error_category(const error_category&) = delete; error_category& operator=(const error_category&) = delete; @@ -366,7 +367,11 @@ class _LIBCPP_TYPE_VIS error_category public: virtual ~error_category() _NOEXCEPT; +#ifdef _LIBCPP_BUILDING_SYSTEM_ERROR error_category() _NOEXCEPT; +#else + _LIBCPP_ALWAYS_INLINE _LIBCPP_CONSTEXPR_AFTER_CXX11 error_category() _NOEXCEPT {} +#endif private: error_category(const error_category&);// = delete; error_category& operator=(const error_category&);// = delete; |

