@@ -94,31 +94,31 @@ class BOOST_SYMBOL_VISIBLE error_category
9494
9595public:
9696
97- virtual const char * name () const noexcept = 0;
97+ virtual const char * name () const noexcept = 0;
9898
99- virtual error_condition default_error_condition ( int ev ) const noexcept ;
100- virtual bool equivalent ( int code, const error_condition & condition ) const noexcept ;
101- virtual bool equivalent ( const error_code & code, int condition ) const noexcept ;
99+ BOOST_SYSTEM_CXX20_CONSTEXPR virtual error_condition default_error_condition ( int ev ) const noexcept ;
100+ BOOST_SYSTEM_CXX20_CONSTEXPR virtual bool equivalent ( int code, error_condition const & condition ) const noexcept ;
101+ BOOST_SYSTEM_CXX20_CONSTEXPR virtual bool equivalent ( error_code const & code, int condition ) const noexcept ;
102102
103103 virtual std::string message ( int ev ) const = 0;
104- virtual char const * message ( int ev, char * buffer, std::size_t len ) const noexcept ;
104+ virtual char const * message ( int ev, char * buffer, std::size_t len ) const noexcept ;
105105
106- virtual bool failed ( int ev ) const noexcept
106+ BOOST_SYSTEM_CXX20_CONSTEXPR virtual bool failed ( int ev ) const noexcept
107107 {
108108 return ev != 0 ;
109109 }
110110
111- friend BOOST_SYSTEM_CONSTEXPR bool operator ==( error_category const & lhs, error_category const & rhs ) noexcept
111+ friend BOOST_SYSTEM_CONSTEXPR bool operator ==( error_category const & lhs, error_category const & rhs ) noexcept
112112 {
113113 return rhs.id_ == 0 ? &lhs == &rhs: lhs.id_ == rhs.id_ ;
114114 }
115115
116- friend BOOST_SYSTEM_CONSTEXPR bool operator !=( error_category const & lhs, error_category const & rhs ) noexcept
116+ friend BOOST_SYSTEM_CONSTEXPR bool operator !=( error_category const & lhs, error_category const & rhs ) noexcept
117117 {
118118 return !( lhs == rhs );
119119 }
120120
121- friend BOOST_SYSTEM_CONSTEXPR bool operator <( error_category const & lhs, error_category const & rhs ) noexcept
121+ friend BOOST_SYSTEM_CONSTEXPR bool operator <( error_category const & lhs, error_category const & rhs ) noexcept
122122 {
123123 if ( lhs.id_ < rhs.id_ )
124124 {
@@ -135,15 +135,15 @@ class BOOST_SYMBOL_VISIBLE error_category
135135 return false ; // equal
136136 }
137137
138- return std::less<error_category const *>()( &lhs, &rhs );
138+ return std::less<error_category const *>()( &lhs, &rhs );
139139 }
140140
141141 void init_stdcat () const ;
142142
143143# if defined(__SUNPRO_CC) // trailing __global is not supported
144- operator std::error_category const & () const ;
144+ operator std::error_category const & () const ;
145145# else
146- operator std::error_category const & () const BOOST_SYMBOL_VISIBLE;
146+ operator std::error_category const & () const BOOST_SYMBOL_VISIBLE;
147147# endif
148148};
149149
@@ -162,7 +162,7 @@ static const boost::ulong_long_type generic_category_id = ( boost::ulong_long_ty
162162static const boost::ulong_long_type system_category_id = generic_category_id + 1 ;
163163static const boost::ulong_long_type interop_category_id = generic_category_id + 2 ;
164164
165- BOOST_SYSTEM_CONSTEXPR inline bool failed_impl ( int ev, error_category const & cat )
165+ BOOST_SYSTEM_CONSTEXPR inline bool failed_impl ( int ev, error_category const & cat )
166166{
167167 if ( cat.id_ == system_category_id || cat.id_ == generic_category_id )
168168 {
0 commit comments