forked from boostorg/system
Add BOOST_SYMBOL_VISIBLE to category classes to placate UBSan
This commit is contained in:
@ -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:
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user