From 38d556a5bd657d7d20b26dba8562d64aa197a54b Mon Sep 17 00:00:00 2001 From: Flamefire Date: Thu, 12 May 2016 13:30:08 +0200 Subject: [PATCH] Fix assignment of move-and-copy emulated classes --- include/boost/move/core.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }\