Simple RTTI is built into the C ++ language, although you can opt out of it (reduces the size of the binary file). You can read RTTI in C ++ here .
If you are looking for something more reliable (e.g. Reflection), unfortunately, there is no easy solution for this, but it is planned for after-C ++ 0x. The Reflection library was proposed for Boost, but it was not accepted (yet?). You can find it here: http://boost-extension.blogspot.com/
source
share