Merge branch 'assignment' of https://github.com/Flamefire/move into Flamefire-assignment

This commit is contained in:
Ion Gaztañaga
2016-06-30 12:20:32 +02:00

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); }\