Boost Library for RTTI

which enlarge the library should I use to implement RTTI in my project? Is this a Statechart library?

+3
source share
3 answers

RTTI is built into the C ++ language. However, you will find several RTTI-related, handy tools in Boost, for example. Boost.TypeTraits , which allows you to check such as is_base_of(), has_trivial_constructor()and many other things. Boost.FunctionTypes may also be worth checking out.

+4
source

RTTI ++ , dynamic_cast TypeId. , .

+7

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/

+2
source

Source: https://habr.com/ru/post/1728141/


All Articles