@@ -45,83 +45,81 @@ class _LIBCPP_TYPE_VIS error_code {
4545 const error_category* __cat_;
4646
4747public:
48- _LIBCPP_INLINE_VISIBILITY error_code () _NOEXCEPT : __val_(0 ), __cat_(&system_category ()) {}
48+ _LIBCPP_HIDE_FROM_ABI error_code () _NOEXCEPT : __val_(0 ), __cat_(&system_category ()) {}
4949
50- _LIBCPP_INLINE_VISIBILITY error_code (int __val, const error_category& __cat) _NOEXCEPT
51- : __val_(__val),
52- __cat_(&__cat) {}
50+ _LIBCPP_HIDE_FROM_ABI error_code (int __val, const error_category& __cat) _NOEXCEPT : __val_(__val), __cat_(&__cat) {}
5351
5452 template <class _Ep >
55- _LIBCPP_INLINE_VISIBILITY
53+ _LIBCPP_HIDE_FROM_ABI
5654 error_code (_Ep __e, typename enable_if<is_error_code_enum<_Ep>::value>::type* = nullptr ) _NOEXCEPT {
5755 using __adl_only::make_error_code;
5856 *this = make_error_code (__e);
5957 }
6058
61- _LIBCPP_INLINE_VISIBILITY void assign (int __val, const error_category& __cat) _NOEXCEPT {
59+ _LIBCPP_HIDE_FROM_ABI void assign (int __val, const error_category& __cat) _NOEXCEPT {
6260 __val_ = __val;
6361 __cat_ = &__cat;
6462 }
6563
6664 template <class _Ep >
67- _LIBCPP_INLINE_VISIBILITY typename enable_if< is_error_code_enum<_Ep>::value, error_code& >::type
65+ _LIBCPP_HIDE_FROM_ABI typename enable_if< is_error_code_enum<_Ep>::value, error_code& >::type
6866 operator =(_Ep __e) _NOEXCEPT {
6967 using __adl_only::make_error_code;
7068 *this = make_error_code (__e);
7169 return *this ;
7270 }
7371
74- _LIBCPP_INLINE_VISIBILITY void clear () _NOEXCEPT {
72+ _LIBCPP_HIDE_FROM_ABI void clear () _NOEXCEPT {
7573 __val_ = 0 ;
7674 __cat_ = &system_category ();
7775 }
7876
79- _LIBCPP_INLINE_VISIBILITY int value () const _NOEXCEPT { return __val_; }
77+ _LIBCPP_HIDE_FROM_ABI int value () const _NOEXCEPT { return __val_; }
8078
81- _LIBCPP_INLINE_VISIBILITY const error_category& category () const _NOEXCEPT { return *__cat_; }
79+ _LIBCPP_HIDE_FROM_ABI const error_category& category () const _NOEXCEPT { return *__cat_; }
8280
83- _LIBCPP_INLINE_VISIBILITY error_condition default_error_condition () const _NOEXCEPT {
81+ _LIBCPP_HIDE_FROM_ABI error_condition default_error_condition () const _NOEXCEPT {
8482 return __cat_->default_error_condition (__val_);
8583 }
8684
8785 string message () const ;
8886
89- _LIBCPP_INLINE_VISIBILITY explicit operator bool () const _NOEXCEPT { return __val_ != 0 ; }
87+ _LIBCPP_HIDE_FROM_ABI explicit operator bool () const _NOEXCEPT { return __val_ != 0 ; }
9088};
9189
92- inline _LIBCPP_INLINE_VISIBILITY error_code make_error_code (errc __e) _NOEXCEPT {
90+ inline _LIBCPP_HIDE_FROM_ABI error_code make_error_code (errc __e) _NOEXCEPT {
9391 return error_code (static_cast <int >(__e), generic_category ());
9492}
9593
96- inline _LIBCPP_INLINE_VISIBILITY bool operator ==(const error_code& __x, const error_code& __y) _NOEXCEPT {
94+ inline _LIBCPP_HIDE_FROM_ABI bool operator ==(const error_code& __x, const error_code& __y) _NOEXCEPT {
9795 return __x.category () == __y.category () && __x.value () == __y.value ();
9896}
9997
100- inline _LIBCPP_INLINE_VISIBILITY bool operator ==(const error_code& __x, const error_condition& __y) _NOEXCEPT {
98+ inline _LIBCPP_HIDE_FROM_ABI bool operator ==(const error_code& __x, const error_condition& __y) _NOEXCEPT {
10199 return __x.category ().equivalent (__x.value (), __y) || __y.category ().equivalent (__x, __y.value ());
102100}
103101
104102#if _LIBCPP_STD_VER <= 17
105- inline _LIBCPP_INLINE_VISIBILITY bool operator ==(const error_condition& __x, const error_code& __y) _NOEXCEPT {
103+ inline _LIBCPP_HIDE_FROM_ABI bool operator ==(const error_condition& __x, const error_code& __y) _NOEXCEPT {
106104 return __y == __x;
107105}
108106#endif
109107
110108#if _LIBCPP_STD_VER <= 17
111109
112- inline _LIBCPP_INLINE_VISIBILITY bool operator !=(const error_code& __x, const error_code& __y) _NOEXCEPT {
110+ inline _LIBCPP_HIDE_FROM_ABI bool operator !=(const error_code& __x, const error_code& __y) _NOEXCEPT {
113111 return !(__x == __y);
114112}
115113
116- inline _LIBCPP_INLINE_VISIBILITY bool operator !=(const error_code& __x, const error_condition& __y) _NOEXCEPT {
114+ inline _LIBCPP_HIDE_FROM_ABI bool operator !=(const error_code& __x, const error_condition& __y) _NOEXCEPT {
117115 return !(__x == __y);
118116}
119117
120- inline _LIBCPP_INLINE_VISIBILITY bool operator !=(const error_condition& __x, const error_code& __y) _NOEXCEPT {
118+ inline _LIBCPP_HIDE_FROM_ABI bool operator !=(const error_condition& __x, const error_code& __y) _NOEXCEPT {
121119 return !(__x == __y);
122120}
123121
124- inline _LIBCPP_INLINE_VISIBILITY bool operator <(const error_code& __x, const error_code& __y) _NOEXCEPT {
122+ inline _LIBCPP_HIDE_FROM_ABI bool operator <(const error_code& __x, const error_code& __y) _NOEXCEPT {
125123 return __x.category () < __y.category () || (__x.category () == __y.category () && __x.value () < __y.value ());
126124}
127125
@@ -137,7 +135,7 @@ inline _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(const error_code& __x,
137135
138136template <>
139137struct _LIBCPP_TEMPLATE_VIS hash<error_code> : public __unary_function<error_code, size_t > {
140- _LIBCPP_INLINE_VISIBILITY size_t operator ()(const error_code& __ec) const _NOEXCEPT {
138+ _LIBCPP_HIDE_FROM_ABI size_t operator ()(const error_code& __ec) const _NOEXCEPT {
141139 return static_cast <size_t >(__ec.value ());
142140 }
143141};
0 commit comments