>From: "David Abrahams"
>Subject: Re: [boost] Re: auto_array_ptr
>Date: Fri, 6 Apr 2001 08:42:55 -0400
>Received: from [220.127.116.11] by hotmail.com (3.2) with ESMTP id MHotMailBC97046F005540043163D03263C68CF9139; Fri Apr 06 05:51:08 2001
>Received: from [10.1.4.52] by hm.egroups.com with NNFMP; 06 Apr 2001 12:45:21 -0000
>Received: (EGP: mail-7_1_1); 6 Apr 2001 12:45:20 -0000
>Received: (qmail 5897 invoked from network); 6 Apr 2001 12:44:49 -0000
>Received: from unknown (10.1.10.26) by m8.onelist.org with QMQP; 6 Apr 2001 12:44:49 -0000
>Received: from unknown (HELO hwd.net) (18.104.22.168) by mta1 with SMTP; 6 Apr 2001 12:44:49 -0000
>Received: from davida [22.214.171.124] by hwd.net (SMTPD32-5.01) id ABB03F40256; Fri, 06 Apr 2001 04:50:56 PST
>From sentto-1234907-8052-986561121-amirhusain Fri Apr 06 05:53:00 2001
>References: <009d01c0be8f$a79478e0$160524d4@pdimov> <firstname.lastname@example.org> <00bf01c0be95$331395e0$160524d4@pdimov>
>X-Mailer: Microsoft Outlook Express 5.50.4133.2400
>X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400
>X-eGroups-From: "David Abrahams"
>Mailing-List: list email@example.com; contact firstname.lastname@example.org
>Delivered-To: mailing list email@example.com
>----- Original Message -----
>From: "Peter Dimov"
> > The caveat about temporary smart pointer objects still applies. My rule is
> > "never create an unnamed temporary smart pointer." The non-const reference
> > idiom tries to enforce this rule... although I have another reason for
> > preferring pass by non-const reference:
> > void f(T arg);
> > T t;
> > f(t);
> > // now t is unchanged, right?
>Wrong, of course. Usually, the declaration of f isn't visible near the call,
>so you can't assume much about what's changed. But this case could be seen
>as an argument for using the unnamed temporary... then there's no object
>hanging around with a confusing value.
>To unsubscribe, send email to:
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Must look like a kid question the thing i wanna ask is why do we use auto_array_ptr rather then the normal pointer wat benefits are there in using it??
Why a auto_ary_ptr noa a normal ptr?
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk