Fixes #185 ("Including headers adds exports"), replacing BOOST_SYMBOL_EXPORT with BOOST_SYMBOL_VISIBLE.

This commit is contained in:
Ion Gaztañaga
2021-05-03 09:18:51 +02:00
parent b7d48f1e08
commit 15bed478eb
2 changed files with 7 additions and 6 deletions

View File

@@ -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/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/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/184 GitHub #184: ['"Issues with custom exceptions implementation"]].
* [@https://github.com/boostorg/container/issues/185 GitHub #185: ['"Including headers adds exports"]].
[endsect] [endsect]

View File

@@ -47,7 +47,7 @@ typedef std::runtime_error runtime_error_t;
namespace boost { namespace boost {
namespace container { namespace container {
class BOOST_SYMBOL_EXPORT exception class BOOST_SYMBOL_VISIBLE exception
: public ::std::exception : public ::std::exception
{ {
typedef ::std::exception std_exception_t; typedef ::std::exception std_exception_t;
@@ -66,7 +66,7 @@ class BOOST_SYMBOL_EXPORT exception
const char *m_msg; const char *m_msg;
}; };
class BOOST_SYMBOL_EXPORT bad_alloc class BOOST_SYMBOL_VISIBLE bad_alloc
: public exception : public exception
{ {
public: public:
@@ -77,7 +77,7 @@ class BOOST_SYMBOL_EXPORT bad_alloc
typedef bad_alloc bad_alloc_t; typedef bad_alloc bad_alloc_t;
class BOOST_SYMBOL_EXPORT out_of_range class BOOST_SYMBOL_VISIBLE out_of_range
: public exception : public exception
{ {
public: public:
@@ -88,7 +88,7 @@ class BOOST_SYMBOL_EXPORT out_of_range
typedef out_of_range out_of_range_t; typedef out_of_range out_of_range_t;
class BOOST_SYMBOL_EXPORT length_error class BOOST_SYMBOL_VISIBLE length_error
: public exception : public exception
{ {
public: public:
@@ -99,7 +99,7 @@ class BOOST_SYMBOL_EXPORT length_error
typedef out_of_range length_error_t; typedef out_of_range length_error_t;
class BOOST_SYMBOL_EXPORT logic_error class BOOST_SYMBOL_VISIBLE logic_error
: public exception : public exception
{ {
public: public:
@@ -110,7 +110,7 @@ class BOOST_SYMBOL_EXPORT logic_error
typedef logic_error logic_error_t; typedef logic_error logic_error_t;
class BOOST_SYMBOL_EXPORT runtime_error class BOOST_SYMBOL_VISIBLE runtime_error
: public exception : public exception
{ {
public: public: