mirror of
https://github.com/boostorg/move.git
synced 2025-07-29 20:07:13 +02:00
Add BOOST_MOVE_FORCEINLINE for conversion operators.
This commit is contained in:
@ -262,12 +262,12 @@
|
||||
|
||||
#define BOOST_COPYABLE_AND_MOVABLE(TYPE)\
|
||||
public:\
|
||||
inline TYPE& operator=(TYPE &t)\
|
||||
BOOST_MOVE_FORCEINLINE TYPE& operator=(TYPE &t)\
|
||||
{ this->operator=(const_cast<const TYPE&>(t)); return *this;}\
|
||||
public:\
|
||||
inline operator ::boost::rv<TYPE>&() \
|
||||
BOOST_MOVE_FORCEINLINE operator ::boost::rv<TYPE>&() \
|
||||
{ return *BOOST_MOVE_TO_RV_CAST(::boost::rv<TYPE>*, this); }\
|
||||
inline operator const ::boost::rv<TYPE>&() const \
|
||||
BOOST_MOVE_FORCEINLINE operator const ::boost::rv<TYPE>&() const \
|
||||
{ return *BOOST_MOVE_TO_RV_CAST(const ::boost::rv<TYPE>*, this); }\
|
||||
private:\
|
||||
//
|
||||
|
Reference in New Issue
Block a user