[Marble-devel] Review Request: provide nodeType information for downcasting

Jens-Michael Hoffmann jensmh at gmx.de
Sat Jul 25 14:27:05 CEST 2009


I just added a comment in reviewboard as follows, but since the reviewboard generated mail apparently got bounced, I'll just copy it here:

I think this is conceptually wrong for the following reasons:

1) casting in C++ is like goto in C, we should not use it.
2) if we want to cast in a safe way, we should use the compilers RTTI, or maybe Qt's,
  but not build our own RTTI


More information about the Marble-devel mailing list