From 98439855bd524500df08a01eaa63dc4356f0978d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 21 Apr 2022 20:52:02 +0300 Subject: [PATCH] Use static_cast instead of reinterpret_cast --- include/boost/system/detail/error_category_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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