[C++-sig] Re: discard reference

Mike Rovner mike at nospam.com
Wed Sep 17 00:44:16 CEST 2003


David Abrahams wrote:

> get the polymorphism you want (laboriously) by using
>
>   implicitly_convertible<std::auto_ptr<Derived>,std::auto_ptr<Base>
> >();
>
> for all the appropriate Derived classes.

Thanks, David. It works perfectly.







More information about the Cplusplus-sig mailing list