mirror of
https://github.com/boostorg/system.git
synced 2025-07-31 04:57:13 +02:00
Use static_cast instead of reinterpret_cast
This commit is contained in:
@ -176,7 +176,7 @@ inline error_category::operator std::error_category const & () const
|
||||
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
|
||||
|
Reference in New Issue
Block a user