Use static_cast instead of reinterpret_cast

This commit is contained in:
Peter Dimov
2022-04-21 20:52:02 +03:00
parent 986efb1420
commit 98439855bd

View File

@@ -176,7 +176,7 @@ inline error_category::operator std::error_category const & () const
init_stdcat(); init_stdcat();
} }
return *reinterpret_cast<boost::system::detail::std_category const*>( stdcat_ ); return *static_cast<boost::system::detail::std_category const*>( static_cast<void const*>( stdcat_ ) );
} }
} // namespace system } // namespace system