Boost logo

Boost :

From: Howard Hinnant (howard.hinnant_at_[hidden])
Date: 2006-03-10 08:57:03


On Mar 10, 2006, at 2:25 AM, Ralf W. Grosse-Kunstleve wrote:

>> Point your vendor at:
>>
>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/
>> n1856.html#Addition%20-%20Class%20template%20unqiue_ptr
>>
>> and tell them you want it sooner rather than later.
>
> Thanks for the link! unique_ptr looks like the best general
> solution. Problem
> is, I needed it yesterday (literally) and in fact I would have
> loved to use it
> many times before.
>
> If auto_ptr is going to be deprecated, of course auto_array
> shouldn't be in
> boost. How about this tiny patch then to keep poor old scientific
> application
> developers like me going until the optimal solution is universally
> available?

Another option is here: http://www.kangaroologic.com/move_ptr/

static_move_ptr is roughly a C++03 emulation of the proposed unique_ptr.

-Howard


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