Boost logo

Boost :

Subject: Re: [boost] [unique_ptr] So how is it used differently?
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2008-12-22 21:10:39


Mathias Gaunard wrote:
> Sid Sacek wrote:
>
>> 1) When would I choose unique_ptr<> over auto_ptr<> ?
>
> Always.
> auto_ptr is deprecated and is dangerous.
>
> unique_ptr, for example, perfectly works with containers.
>

With containers written to support unique_ptr or with any Container as
defined by the standard's concept?

-- 
Michael Marcin

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