mirror of
https://github.com/boostorg/move.git
synced 2026-01-19 04:22:10 +00:00
Merge pull request #62 from Flamefire/patch-1
Avoid warning in `launder_cast`
This commit is contained in:
@@ -44,7 +44,7 @@ BOOST_MOVE_FORCEINLINE T* launder(T* p)
|
||||
template<class T>
|
||||
BOOST_MOVE_FORCEINLINE T launder_cast(const volatile void* p)
|
||||
{
|
||||
return (launder)((T)p);
|
||||
return (launder)(static_cast<T>(const_cast<void*>(p)));
|
||||
}
|
||||
|
||||
} //namespace move_detail {
|
||||
|
||||
Reference in New Issue
Block a user