This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: std::auto_ptr
- From: Kick Damien-DKICK1 <DKICK1 at motorola dot com>
- To: "'Loren James Rittle'" <rittle at latour dot rsch dot comm dot mot dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 5 Jun 2003 10:46:28 -0500
- Subject: RE: std::auto_ptr
Loren James Rittle [rittle@latour.rsch.comm.mot.com] wrote:
> In article
<796456A0F96AD511A0AC009027B0F7410F709313@IL27EXM08.cig.mot.com>
> you write:
> > Maybe I just utterly confused but shouldn't this work?
> Maybe you are. ;-)
> Try using this line instead:
>
> std::auto_ptr<Base> source(new Derived(13));
<Blush> Doh!! I swear, that it was I wanted to type. Should have
looked twice before posting. Thanks, Loren. I'll go slink back into
a corner now...