diff options
Diffstat (limited to 'boost/fiber/exceptions.hpp')
-rw-r--r-- | boost/fiber/exceptions.hpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/boost/fiber/exceptions.hpp b/boost/fiber/exceptions.hpp index ddbf45eadf..5a5f7e4f1b 100644 --- a/boost/fiber/exceptions.hpp +++ b/boost/fiber/exceptions.hpp @@ -28,15 +28,15 @@ namespace fibers { class fiber_error : public std::system_error { public: fiber_error( std::error_code ec) : - std::system_error( ec) { + std::system_error{ ec } { } fiber_error( std::error_code ec, const char * what_arg) : - std::system_error( ec, what_arg) { + std::system_error{ ec, what_arg } { } fiber_error( std::error_code ec, std::string const& what_arg) : - std::system_error( ec, what_arg) { + std::system_error{ ec, what_arg } { } virtual ~fiber_error() = default; @@ -45,15 +45,15 @@ public: class lock_error : public fiber_error { public: lock_error( std::error_code ec) : - fiber_error( ec) { + fiber_error{ ec } { } lock_error( std::error_code ec, const char * what_arg) : - fiber_error( ec, what_arg) { + fiber_error{ ec, what_arg } { } lock_error( std::error_code ec, std::string const& what_arg) : - fiber_error( ec, what_arg) { + fiber_error{ ec, what_arg } { } }; @@ -77,12 +77,12 @@ struct is_error_code_enum< boost::fibers::future_errc > : public true_type { inline std::error_code make_error_code( boost::fibers::future_errc e) noexcept { - return std::error_code( static_cast< int >( e), boost::fibers::future_category() ); + return std::error_code{ static_cast< int >( e), boost::fibers::future_category() }; } inline std::error_condition make_error_condition( boost::fibers::future_errc e) noexcept { - return std::error_condition( static_cast< int >( e), boost::fibers::future_category() ); + return std::error_condition{ static_cast< int >( e), boost::fibers::future_category() }; } } @@ -93,49 +93,49 @@ namespace fibers { class future_error : public fiber_error { public: future_error( std::error_code ec) : - fiber_error( ec) { + fiber_error{ ec } { } }; class future_uninitialized : public future_error { public: future_uninitialized() : - future_error( std::make_error_code( future_errc::no_state) ) { + future_error{ std::make_error_code( future_errc::no_state) } { } }; class future_already_retrieved : public future_error { public: future_already_retrieved() : - future_error( std::make_error_code( future_errc::future_already_retrieved) ) { + future_error{ std::make_error_code( future_errc::future_already_retrieved) } { } }; class broken_promise : public future_error { public: broken_promise() : - future_error( std::make_error_code( future_errc::broken_promise) ) { + future_error{ std::make_error_code( future_errc::broken_promise) } { } }; class promise_already_satisfied : public future_error { public: promise_already_satisfied() : - future_error( std::make_error_code( future_errc::promise_already_satisfied) ) { + future_error{ std::make_error_code( future_errc::promise_already_satisfied) } { } }; class promise_uninitialized : public future_error { public: promise_uninitialized() : - future_error( std::make_error_code( future_errc::no_state) ) { + future_error{ std::make_error_code( future_errc::no_state) } { } }; class packaged_task_uninitialized : public future_error { public: packaged_task_uninitialized() : - future_error( std::make_error_code( future_errc::no_state) ) { + future_error{ std::make_error_code( future_errc::no_state) } { } }; |