Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-06-30 12:28:37


----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>

> From: "David Abrahams" <david.abrahams_at_[hidden]>
> > The user is not forced to call new if we have a generator function
> producing
> > the appropriate auto_ptr.
>
> Would thread::create fit this description, with thread::ref (thread::id)
> being the 'appropriate auto_ptr'? :-)

Maybe. I've not been following closely. ;-)

> std::auto_ptr itself is not the appropriate auto_ptr since it mandates
> dynamic allocation; the user doesn't see the 'new' but still pays the
price,
> even in situations where the library implementor could have avoided it.

OK.


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