[move] Macro for initializing base classes in move ctors.

Initializing base classes in move constructors involves some boiler-plate
code. Is there a reason why a macro is not provided for it? Something like:
#define BOOST_MOVE_INITBASEMOVECTOR(baseclassname, rhs) \
baseclassname(::boost::move(static_cast

El 04/10/2014 2:11, Mostafa escribió:
Initializing base classes in move constructors involves some boiler-plate code. Is there a reason why a macro is not provided for it?
Nobody has required it ;-)
Something like:
#define BOOST_MOVE_INITBASEMOVECTOR(baseclassname, rhs) \ baseclassname(::boost::move(static_cast
(rhs)))
Sounds like good idea. Can you please open an ticket/issue? Thanks, Ion

On Fri, 03 Oct 2014 22:06:51 -0700, Ion Gaztañaga
El 04/10/2014 2:11, Mostafa escribió:
Initializing base classes in move constructors involves some boiler-plate code. Is there a reason why a macro is not provided for it?
Nobody has required it ;-)
Something like:
#define BOOST_MOVE_INITBASEMOVECTOR(baseclassname, rhs) \ baseclassname(::boost::move(static_cast
(rhs))) Sounds like good idea. Can you please open an ticket/issue?

El 04/10/2014 7:17, Mostafa escribió:
Sounds like good idea. Can you please open an ticket/issue?
Thanks! Ion
participants (2)
-
Ion Gaztañaga
-
Mostafa