Boost logo

Boost :

Subject: [boost] [unique_ptr] So how is it used differently?
From: Sid Sacek (heavyreign_at_[hidden])
Date: 2008-12-21 16:30:55


Thank you, I didn't realize it was already a part of the latest boost


What I'm curious about is two things...


1) When would I choose unique_ptr<> over auto_ptr<> ?




2) When would I choose unique_ptr<> over scoped_ptr<> ?


Can somebody please provide some coding differences? If these coding
examples are already documented someplace, can you please direct me to them?


Thank you very much in advance.

-Sid Sacek



-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
On Behalf Of OvermindDL1
Sent: Sunday, December 21, 2008 6:01 AM
To: boost_at_[hidden]
Subject: Re: [boost] unique_ptr, was: Composing non copyable and movable


On Sat, Dec 20, 2008 at 3:10 PM, Sid Sacek <heavyreign_at_[hidden]> wrote:


> I tried to locate the mentioned unique_ptr<> classes for testing, but am

> unable to locate them.


> Can somebody point me in the right direction please?


This is the only unique_ptr I know of:


Unsubscribe & other changes:


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