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:16:24 CDT

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 : Wed Dec 31 2014 - 23:21:01 CST