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]

Re: RTTI (dynamic_cast)


Alexandre Oliva wrote:
> 
> On Apr  2, 1999, "Braden N. McDaniel" <braden@shadow.net> wrote:
> 
> > Is that a requirement in the standard for using dynamic_cast, or a
> > peculiarity of egcs?
> 
> Standard.
> 
> > Well, regardless, that wouldn't be the problem with
> > what I'm trying to do.
> 
> >                 dynamic_cast<B>(a);
> 
> You can only dynamic_cast to references or pointers.  Try <B&>

D'oh! I knew that. Really.

Thanks for your help...

Braden


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