Boost logo

Boost :

Subject: Re: [boost] [move] Macro for initializing base classes in move ctors.
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2014-10-04 01:06:51


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<baseclassname &>(rhs)))

Sounds like good idea. Can you please open an ticket/issue?

Thanks,

Ion


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk