Home | Libraries | People | FAQ | More |
BOOST_MOVE_BASE — defined(BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG) || defined(BOOST_MOVE_DOXYGEN_INVOKED)
// In header: <boost/move/core.hpp>
BOOST_MOVE_BASE(BASE_TYPE, ARG)
This macro is used to achieve portable optimal move constructors.
When implementing the move constructor, in C++03 compilers the moved-from argument must be cast to the base type before calling boost::move()
due to rvalue reference limitations.
In C++11 compilers the cast from a rvalue reference of a derived type to a rvalue reference of a base type is implicit.