Add BOOST_SYMBOL_VISIBLE to category classes to placate UBSan

This commit is contained in:
Peter Dimov
2018-09-16 19:32:38 +03:00
parent 81c34ab7a4
commit 6bd05dc92d
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ namespace system
namespace detail namespace detail
{ {
class std_category: public std::error_category class BOOST_SYMBOL_VISIBLE std_category: public std::error_category
{ {
private: private:

View File

@ -159,7 +159,7 @@ template<> struct is_error_condition_enum<errc::errc_t>
#pragma warning( disable: 4355 ) #pragma warning( disable: 4355 )
#endif #endif
class error_category class BOOST_SYMBOL_VISIBLE error_category
{ {
#if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) #if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
public: public:
@ -257,7 +257,7 @@ public:
namespace detail namespace detail
{ {
class generic_error_category: public error_category class BOOST_SYMBOL_VISIBLE generic_error_category: public error_category
{ {
public: public:
@ -275,7 +275,7 @@ public:
std::string message( int ev ) const; std::string message( int ev ) const;
}; };
class system_error_category: public error_category class BOOST_SYMBOL_VISIBLE system_error_category: public error_category
{ {
public: public: