Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-10-02 18:04:03


Since auto_ptr is standard, it provides a standard means of documenting
and enforcing the allocation policies of an interface. You can use
auto_ptr parameters and return values, but use shared_ptr internals.

----- Original Message -----
From: Thomas Matelich <sosedada_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, October 02, 2000 4:54 PM
Subject: Re: [boost] Re: auto_array

> While we're on the subject of automatic deletion, a co-worker of mine asked me
> why one would use auto_ptr over shared_ptr. I was stumped. All I can think
> of is speed. I guess there would be situations where you want to force
> deletion, but that seems like dangerous design.
>
> --
> Thomas O Matelich
> Senior Software Designer
> Zetec, Inc.
> sosedada_at_[hidden]
> tmatelich_at_[hidden]
>
>
>
>
>
>
>


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