Fix assignment of move-and-copy emulated classes

This commit is contained in:
Flamefire
2016-05-12 13:30:08 +02:00
parent 122916d820
commit 38d556a5bd

View File

@@ -261,7 +261,7 @@
#define BOOST_COPYABLE_AND_MOVABLE(TYPE)\ #define BOOST_COPYABLE_AND_MOVABLE(TYPE)\
public:\ public:\
TYPE& operator=(TYPE &t)\ TYPE& operator=(TYPE &t)\
{ this->operator=(const_cast<const TYPE &>(t)); return *this;}\ { this->operator=(static_cast<const ::boost::rv<TYPE>&>(t)); }\
public:\ public:\
BOOST_MOVE_FORCEINLINE operator ::boost::rv<TYPE>&() \ BOOST_MOVE_FORCEINLINE operator ::boost::rv<TYPE>&() \
{ return *BOOST_MOVE_TO_RV_CAST(::boost::rv<TYPE>*, this); }\ { return *BOOST_MOVE_TO_RV_CAST(::boost::rv<TYPE>*, this); }\