diff --git a/include/boost/system/detail/error_category_impl.hpp b/include/boost/system/detail/error_category_impl.hpp index db3fbc9..30ae9f4 100644 --- a/include/boost/system/detail/error_category_impl.hpp +++ b/include/boost/system/detail/error_category_impl.hpp @@ -176,7 +176,7 @@ inline error_category::operator std::error_category const & () const init_stdcat(); } - return *reinterpret_cast( stdcat_ ); + return *static_cast( static_cast( stdcat_ ) ); } } // namespace system