2
0
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:
Ion Gaztañaga
2025-11-02 21:48:57 +01:00
committed by GitHub

View File

@@ -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 {