diff --git a/include/boost/move/detail/launder.hpp b/include/boost/move/detail/launder.hpp index a6236de..ca5d851 100644 --- a/include/boost/move/detail/launder.hpp +++ b/include/boost/move/detail/launder.hpp @@ -44,7 +44,7 @@ BOOST_MOVE_FORCEINLINE T* launder(T* p) template BOOST_MOVE_FORCEINLINE T launder_cast(const volatile void* p) { - return (launder)((T)p); + return (launder)(static_cast(const_cast(p))); } } //namespace move_detail {