mirror of
https://github.com/boostorg/move.git
synced 2025-08-01 05:14:27 +02:00
Use BOOST_MOVE_TO_RV_CAST in the newly fixed assignment operator.
Update changelog
This commit is contained in:
@@ -762,6 +762,13 @@ Many thanks to all boosters that have tested, reviewed and improved the library.
|
|||||||
|
|
||||||
[section:release_notes Release Notes]
|
[section:release_notes Release Notes]
|
||||||
|
|
||||||
|
[section:release_notes_boost_1_62 Boost 1.62 Release]
|
||||||
|
|
||||||
|
* Fixed bugs:
|
||||||
|
* [@https://github.com/boostorg/move/pull/9 Git Pull #9: ['"Fix assignment of move-and-copy emulated classes"]],
|
||||||
|
|
||||||
|
[endsect]
|
||||||
|
|
||||||
[section:release_notes_boost_1_61 Boost 1.61 Release]
|
[section:release_notes_boost_1_61 Boost 1.61 Release]
|
||||||
|
|
||||||
* Experimental: asymptotically optimal bufferless merge and sort algorithms: [funcref boost::movelib::adaptive_merge adaptive_merge]
|
* Experimental: asymptotically optimal bufferless merge and sort algorithms: [funcref boost::movelib::adaptive_merge adaptive_merge]
|
||||||
|
@@ -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=(static_cast<const ::boost::rv<TYPE>&>(t)); }\
|
{ this->operator=(*BOOST_MOVE_TO_RV_CAST(const ::boost::rv<TYPE>*, &t)); return *this;}\
|
||||||
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); }\
|
||||||
|
Reference in New Issue
Block a user