From 1e6dc86a6865ed27a75f745ee042cefa6bb97094 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 2 Oct 2018 02:59:03 +0300 Subject: [PATCH] Change code to match documentation --- include/boost/system/error_code.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index f413980..3964569 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -205,16 +205,16 @@ protected: #endif + BOOST_SYSTEM_CONSTEXPR error_category() BOOST_NOEXCEPT: id_( 0 ) + { + } + explicit BOOST_SYSTEM_CONSTEXPR error_category( boost::ulong_long_type id ) BOOST_NOEXCEPT: id_( id ) { } public: - BOOST_SYSTEM_CONSTEXPR error_category() BOOST_NOEXCEPT: id_( 0 ) - { - } - virtual const char * name() const BOOST_NOEXCEPT = 0; virtual error_condition default_error_condition( int ev ) const BOOST_NOEXCEPT; @@ -746,7 +746,7 @@ inline bool operator!=( const error_code & lhs, const error_condition & rhs ) BO inline bool operator==( const error_condition & condition, const error_code & code ) BOOST_NOEXCEPT { - return condition.category().equivalent( code, condition.value() ) || code.category().equivalent( code.value(), condition ); + return code.category().equivalent( code.value(), condition ) || condition.category().equivalent( code, condition.value() ); } inline bool operator!=( const error_condition & lhs, const error_code & rhs ) BOOST_NOEXCEPT