This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]