Remove uses of BOOST_NOEXCEPT

This commit is contained in:
Peter Dimov
2024-01-17 07:14:05 +02:00
parent 128fd9341f
commit abbfd46517
25 changed files with 152 additions and 152 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class user_category: public sys::error_category
{
public:
virtual const char * name() const BOOST_NOEXCEPT
virtual const char * name() const noexcept
{
return "user";
}
+1 -1
View File
@@ -21,7 +21,7 @@ class user_category: public sys::error_category
{
public:
virtual const char * name() const BOOST_NOEXCEPT
virtual const char * name() const noexcept
{
return "user";
}
+3 -3
View File
@@ -13,11 +13,11 @@ struct http_category_impl: public error_category
{
// clang++ 3.8 and below: initialization of const object
// requires a user-provided default constructor
BOOST_SYSTEM_CONSTEXPR http_category_impl() BOOST_NOEXCEPT
BOOST_SYSTEM_CONSTEXPR http_category_impl() noexcept
{
}
char const * name() const BOOST_NOEXCEPT
char const * name() const noexcept
{
return "http";
}
@@ -30,7 +30,7 @@ struct http_category_impl: public error_category
return buffer;
}
bool failed( int ev ) const BOOST_NOEXCEPT
bool failed( int ev ) const noexcept
{
return !( ev >= 200 && ev < 300 );
}
+8 -8
View File
@@ -100,7 +100,7 @@ class user_category_impl: public boost::system::error_category
{
public:
virtual const char * name() const BOOST_NOEXCEPT
virtual const char * name() const noexcept
{
return "user";
}
@@ -113,7 +113,7 @@ public:
return buffer;
}
virtual boost::system::error_condition default_error_condition( int ev ) const BOOST_NOEXCEPT
virtual boost::system::error_condition default_error_condition( int ev ) const noexcept
{
if( ev == 4 )
{
@@ -129,7 +129,7 @@ public:
}
}
virtual bool equivalent( int code, const boost::system::error_condition & condition ) const BOOST_NOEXCEPT
virtual bool equivalent( int code, const boost::system::error_condition & condition ) const noexcept
{
if( code == 4 && condition == make_error_condition( boost::system::errc::too_many_files_open_in_system ) )
{
@@ -144,7 +144,7 @@ public:
return default_error_condition( code ) == condition;
}
// virtual bool equivalent( const error_code & code, int condition ) const BOOST_NOEXCEPT;
// virtual bool equivalent( const error_code & code, int condition ) const noexcept;
};
boost::system::error_category const & user_category()
@@ -240,7 +240,7 @@ class user2_category_impl: public boost::system::error_category
{
public:
virtual const char * name() const BOOST_NOEXCEPT
virtual const char * name() const noexcept
{
return "user2";
}
@@ -253,17 +253,17 @@ public:
return buffer;
}
virtual boost::system::error_condition default_error_condition( int ev ) const BOOST_NOEXCEPT
virtual boost::system::error_condition default_error_condition( int ev ) const noexcept
{
return boost::system::error_condition( ev, *this );
}
virtual bool equivalent( int code, const boost::system::error_condition & condition ) const BOOST_NOEXCEPT
virtual bool equivalent( int code, const boost::system::error_condition & condition ) const noexcept
{
return default_error_condition( code ) == condition;
}
virtual bool equivalent( const boost::system::error_code & code, int condition ) const BOOST_NOEXCEPT
virtual bool equivalent( const boost::system::error_code & code, int condition ) const noexcept
{
if( code.category() == *this )
{
+2 -2
View File
@@ -19,12 +19,12 @@ class my_category: public boost::system::error_category
{
public:
char const* name() const BOOST_NOEXCEPT
char const* name() const noexcept
{
return "mycat";
}
boost::system::error_condition default_error_condition( int ev ) const BOOST_NOEXCEPT
boost::system::error_condition default_error_condition( int ev ) const noexcept
{
switch( ev )
{
+1 -1
View File
@@ -13,7 +13,7 @@ class my_category_impl: public std::error_category
{
public:
char const* name() const BOOST_NOEXCEPT
char const* name() const noexcept
{
return "mycat";
}
+1 -1
View File
@@ -13,7 +13,7 @@ class my_category_impl: public boost::system::error_category
{
public:
char const* name() const BOOST_NOEXCEPT
char const* name() const noexcept
{
return "mycat";
}
+1 -1
View File
@@ -13,7 +13,7 @@ class user_category: public boost::system::error_category
{
public:
virtual const char * name() const BOOST_NOEXCEPT
virtual const char * name() const noexcept
{
return "user";
}