From 3b6315e4a15c1fd8da71376c15a9b248d5d44a7e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 25 Apr 2019 16:55:13 +0300 Subject: [PATCH] Add BOOST_SYMBOL_VISIBLE to system_category(), generic_category() --- include/boost/system/error_code.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index f1d7ddb..4ad8bc6 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -329,7 +329,7 @@ public: namespace detail { -template struct cat_holder +template struct BOOST_SYMBOL_VISIBLE cat_holder { BOOST_SYSTEM_REQUIRE_CONST_INIT static constexpr system_error_category system_category_instance{}; BOOST_SYSTEM_REQUIRE_CONST_INIT static constexpr generic_error_category generic_category_instance{}; @@ -352,12 +352,16 @@ constexpr error_category const & generic_category() BOOST_NOEXCEPT #else // #if defined(BOOST_SYSTEM_HAS_CONSTEXPR) +inline error_category const & system_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE; + inline error_category const & system_category() BOOST_NOEXCEPT { static const detail::system_error_category system_category_instance; return system_category_instance; } +inline error_category const & generic_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE; + inline error_category const & generic_category() BOOST_NOEXCEPT { static const detail::generic_error_category generic_category_instance;