summaryrefslogtreecommitdiff
path: root/libcxx/include/system_error
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-02 17:17:01 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-02 17:17:01 +0000
commit40a01d5314ffc3c5f4c379cd69015f962dde5f72 (patch)
tree33725944bdc9f3baa95beb2ee8612d1a6c1dbaf5 /libcxx/include/system_error
parent2640a0a5e576ed0474cebc6efd89fe65e1ebbd38 (diff)
Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later).
llvm-svn: 321658
Diffstat (limited to 'libcxx/include/system_error')
-rw-r--r--libcxx/include/system_error8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/system_error b/libcxx/include/system_error
index 12745525f57f..c577edceee82 100644
--- a/libcxx/include/system_error
+++ b/libcxx/include/system_error
@@ -47,10 +47,10 @@ template <class T> struct is_error_condition_enum
: public false_type {};
template <class _Tp>
-constexpr size_t is_error_condition_enum_v = is_error_condition_enum<_Tp>::value; // C++17
+inline constexpr size_t is_error_condition_enum_v = is_error_condition_enum<_Tp>::value; // C++17
template <class _Tp>
-constexpr size_t is_error_code_enum_v = is_error_code_enum<_Tp>::value; // C++17
+inline constexpr size_t is_error_code_enum_v = is_error_code_enum<_Tp>::value; // C++17
class error_code
{
@@ -246,7 +246,7 @@ struct _LIBCPP_TEMPLATE_VIS is_error_code_enum
#if _LIBCPP_STD_VER > 14
template <class _Tp>
-constexpr size_t is_error_code_enum_v = is_error_code_enum<_Tp>::value;
+_LIBCPP_INLINE_VAR constexpr size_t is_error_code_enum_v = is_error_code_enum<_Tp>::value;
#endif
// is_error_condition_enum
@@ -257,7 +257,7 @@ struct _LIBCPP_TEMPLATE_VIS is_error_condition_enum
#if _LIBCPP_STD_VER > 14
template <class _Tp>
-constexpr size_t is_error_condition_enum_v = is_error_condition_enum<_Tp>::value;
+_LIBCPP_INLINE_VAR constexpr size_t is_error_condition_enum_v = is_error_condition_enum<_Tp>::value;
#endif
// Some error codes are not present on all platforms, so we provide equivalents