std::auto_ptr
Kick Damien-DKICK1
DKICK1@motorola.com
Thu Jun 5 15:52:00 GMT 2003
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...
More information about the Gcc
mailing list