|
Boost : |
Subject: Re: [boost] [move] Macro for initializing base classes in move ctors.
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2014-10-04 01:17:10
On Fri, 03 Oct 2014 22:06:51 -0700, Ion Gaztañaga <igaztanaga_at_[hidden]>
wrote:
> 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?
https://svn.boost.org/trac/boost/ticket/10595
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk