forked from boostorg/system
Use static_cast instead of reinterpret_cast
This commit is contained in:
1 parent
986efb1420
commit
98439855bd
1 file changed
+1
-1
@@ -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