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;