forked from boostorg/system
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();
|
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
|
||||||
|
Reference in New Issue
Block a user