This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RTTI (dynamic_cast)
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&>
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists