kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24178
Re: dyn_cast
Hi,
On 13.04.2016 18:13, Chris Pavlina wrote:
> What is the purpose of dyn_cast<> in include/core/typeinfo.h? Why don't we just
> use dynamic_cast<>? And can we either replace the former with the latter, or
> add a comment to the former explaining its purpose?
It uses the parallel type system in EDA_ITEM rather than RTTI, so it
works if RTTI is broken, e.g. when compiling with gcc 2.95.
I believe this should go.
Simon
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References
-
dyn_cast
From: Chris Pavlina, 2016-04-13