From 5fd2535d9f43fdaaa179b741d6140319b2243494 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 19 Sep 2021 16:04:16 +0300 Subject: [PATCH] Excise generic_category() references from error_condition --- include/boost/system/detail/error_condition.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/boost/system/detail/error_condition.hpp b/include/boost/system/detail/error_condition.hpp index a16ce57..c48f424 100644 --- a/include/boost/system/detail/error_condition.hpp +++ b/include/boost/system/detail/error_condition.hpp @@ -130,7 +130,7 @@ public: } else { - return generic_category().message( value() ); + return detail::generic_error_category_message( value() ); } } @@ -142,7 +142,7 @@ public: } else { - return generic_category().message( value(), buffer, len ); + return detail::generic_error_category_message( value(), buffer, len ); } } @@ -251,7 +251,15 @@ public: { std::string r( "cond:" ); - r += category().name(); + if( cat_ ) + { + r += cat_->name(); + } + else + { + r += "generic"; + } + detail::append_int( r, value() ); return r;