Subject: Re: [boost] [utility] rvalue support in value_initialized
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-09-18 23:14:17
On 9/18/2011 1:45 AM, Mathias Gaunard wrote:
> On 14/09/2011 15:00, "Claas H. Köhler" wrote:
>> Hi everybody!
>> Recently I encountered a problem using the std:::unique_ptr within
>> boost::spirit. The reason is apparently that value_initialized does not
>> support rvalue assignment. Are there any plans to implement move
>> semantics into value_initialized? Mainly I would be interested in making
>> something like this work:
>> std::unique_ptr<T> a= boost::get( boost::value_initialized<
>> std::unique_ptr<T> >() );
>> Currently this fails due to the fact, that unique_ptr can be moved but
>> not copied.
> I had a patch for this and for fusion in order to make spirit move-enabled.
Where is it? Was it submitted?
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com