Add BOOST_SYMBOL_VISIBLE to generic_error_category and system_error_category, to placate ubsan

This commit is contained in:
Peter Dimov
2018-09-16 08:00:24 +03:00
parent 3bdea5dfa3
commit a9909bb82b

View File

@ -361,7 +361,7 @@ namespace detail
# define BOOST_SYSTEM_DECL_ BOOST_SYSTEM_DECL
#endif
class generic_error_category: public error_category
class BOOST_SYMBOL_VISIBLE generic_error_category: public error_category
{
public:
@ -379,7 +379,7 @@ public:
BOOST_SYSTEM_DECL_ std::string message( int ev ) const;
};
class system_error_category: public error_category
class BOOST_SYMBOL_VISIBLE system_error_category: public error_category
{
public: