diff --git a/include/boost/move/core.hpp b/include/boost/move/core.hpp index c9cbec2..96e15c0 100644 --- a/include/boost/move/core.hpp +++ b/include/boost/move/core.hpp @@ -261,7 +261,7 @@ #define BOOST_COPYABLE_AND_MOVABLE(TYPE)\ public:\ TYPE& operator=(TYPE &t)\ - { this->operator=(const_cast(t)); return *this;}\ + { this->operator=(static_cast&>(t)); }\ public:\ BOOST_MOVE_FORCEINLINE operator ::boost::rv&() \ { return *BOOST_MOVE_TO_RV_CAST(::boost::rv*, this); }\