Boost logo

Boost :

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


The user is not forced to call new if we have a generator function producing
the appropriate auto_ptr.

-Dave

----- Original Message -----
From: "Jeremy Siek" <jsiek_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, June 30, 2001 11:41 AM
Subject: Re: [boost] Re: Boost.Threads - thread_desc concept

> On Sat, 30 Jun 2001, Peter Dimov wrote:
> > Creation on the heap is orders of magnitude more expensive than managing
a
> > reference count.
> >
> > This is the major problem I see with a noncopyable design. [This is not
> > limited to the current discussion, but applies in general.] The design
> > forces the user to use 'new,' a keyword that has no place in user land.
>
> I agree strongly with this. The design should not force the user to call
> 'new'. I'd much rather see a copyable thread_id type.
>
> Cheers,
> Jeremy
>
> ----------------------------------------------------------------------
> Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
> Ph.D. Candidate, IU B'ton email: jsiek_at_[hidden]
> Summer Manager, AT&T Research phone: (973) 360-8185
> ----------------------------------------------------------------------
>
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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