From 15bed478eb43176e79ea42cec991fed102a2ba37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 3 May 2021 09:18:51 +0200 Subject: [PATCH] Fixes #185 ("Including headers adds exports"), replacing BOOST_SYMBOL_EXPORT with BOOST_SYMBOL_VISIBLE. --- doc/container.qbk | 1 + include/boost/container/throw_exception.hpp | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/container.qbk b/doc/container.qbk index 5aef266..60db13b 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -1344,6 +1344,7 @@ use [*Boost.Container]? There are several reasons for that: * [@https://github.com/boostorg/container/issues/150 GitHub #150: ['"Use std::contiguous_iterator_tag if available"]]. * [@https://github.com/boostorg/container/issues/180 GitHub #180: ['"polymorphic_allocator's copy special member functions are not noexcept"]]. * [@https://github.com/boostorg/container/issues/184 GitHub #184: ['"Issues with custom exceptions implementation"]]. + * [@https://github.com/boostorg/container/issues/185 GitHub #185: ['"Including headers adds exports"]]. [endsect] diff --git a/include/boost/container/throw_exception.hpp b/include/boost/container/throw_exception.hpp index ebb8926..84d26dd 100644 --- a/include/boost/container/throw_exception.hpp +++ b/include/boost/container/throw_exception.hpp @@ -47,7 +47,7 @@ typedef std::runtime_error runtime_error_t; namespace boost { namespace container { -class BOOST_SYMBOL_EXPORT exception +class BOOST_SYMBOL_VISIBLE exception : public ::std::exception { typedef ::std::exception std_exception_t; @@ -66,7 +66,7 @@ class BOOST_SYMBOL_EXPORT exception const char *m_msg; }; -class BOOST_SYMBOL_EXPORT bad_alloc +class BOOST_SYMBOL_VISIBLE bad_alloc : public exception { public: @@ -77,7 +77,7 @@ class BOOST_SYMBOL_EXPORT bad_alloc typedef bad_alloc bad_alloc_t; -class BOOST_SYMBOL_EXPORT out_of_range +class BOOST_SYMBOL_VISIBLE out_of_range : public exception { public: @@ -88,7 +88,7 @@ class BOOST_SYMBOL_EXPORT out_of_range typedef out_of_range out_of_range_t; -class BOOST_SYMBOL_EXPORT length_error +class BOOST_SYMBOL_VISIBLE length_error : public exception { public: @@ -99,7 +99,7 @@ class BOOST_SYMBOL_EXPORT length_error typedef out_of_range length_error_t; -class BOOST_SYMBOL_EXPORT logic_error +class BOOST_SYMBOL_VISIBLE logic_error : public exception { public: @@ -110,7 +110,7 @@ class BOOST_SYMBOL_EXPORT logic_error typedef logic_error logic_error_t; -class BOOST_SYMBOL_EXPORT runtime_error +class BOOST_SYMBOL_VISIBLE runtime_error : public exception { public: