Re: dynamic_cast cannot be done without runtime type information

From: Jérôme Hénin (jerome.henin_at_ibpc.fr)
Date: Mon Mar 11 2013 - 10:31:27 CDT

Update: had I looked properly, I would have noticed that this code is generated by charm++.

----- Original Message -----
> Hi all,
>
> Compiling NAMD CVS using an Intel compiler (on x86_64, MPT), I get
> this error:
>
> inc/ComputePmeMgr.def.h(2717): error: this dynamic_cast cannot be
> done without runtime type information, which is disabled
> _when_0((PmePencilInitMsg*)dynamic_cast<TransportableMsg*>(tr->args[0])->msg);
>
>
> My understanding is that other compilers might just warn about this
> and use a static cast instead. In that case, should I just change
> these to static casts manually, or enable RTTI? (it doesn't sound
> like a good idea, performance-wise).
>
> Thanks for any pointers,
> Jerome
>
>

This archive was generated by hypermail 2.1.6 : Tue Dec 31 2013 - 23:23:03 CST