From a9909bb82b65bcb3dbbf18fc0383e57a5fe65f0f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 16 Sep 2018 08:00:24 +0300 Subject: [PATCH] Add BOOST_SYMBOL_VISIBLE to generic_error_category and system_error_category, to placate ubsan --- include/boost/system/error_code.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 251ddce..cac3a3b 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -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: