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
{
class std_category: public std::error_category
class BOOST_SYMBOL_VISIBLE std_category: public std::error_category
{
private:

View File

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