Page 1 of 1
C++ RTTI implementation
Posted: Sat Feb 12, 2011 5:12 am
by jobn
I have implemented RTTI support for my kernel (i.e. support for typeid and dynamic_cast). Since the
article about RTTI on the wiki doesn't explain anything about the implementation, I would like to share mine. What would be the best way to do this?
Re: C++ RTTI implementation
Posted: Sat Feb 12, 2011 8:05 am
by qw
I'm not sure if it would be useful. RTTI is very compiler-specific.
Re: C++ RTTI implementation
Posted: Sat Feb 12, 2011 8:13 am
by jobn
Sure but is that a problem? The article about C++ already has some compiler specific sections.
By the way, my implementation is made for GCC.
Re: C++ RTTI implementation
Posted: Sun Feb 13, 2011 7:11 am
by Combuster
Just add your info to the wiki. We already assume people use a specific configuration of GCC, so that shouldn't be a problem.
Re: C++ RTTI implementation
Posted: Sun Feb 13, 2011 2:46 pm
by qw
jobn wrote:Sure but is that a problem? The article about C++ already has some compiler specific sections.
True, and most of us are using GCC anyway. Perhaps it should go under
GCC instead of
C++ if it is GCC-specific.