Boost logo

Boost :

Subject: [boost] [utility] rvalue support in value_initialized
From: Claas H. Köhler (claas.koehler_at_[hidden])
Date: 2011-09-14 09:00:05

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at