Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost library for RTTI [closed]

Tags:

c++

boost

rtti

which boost library should I use to implement RTTI in my project?? Is it Statechart library?

like image 545
Jabez Avatar asked Jul 02 '26 05:07

Jabez


2 Answers

RTTI is built into the C++ language, with features like dynamic_cast and typeid. You don't need boost to use it.

like image 52
Terry Mahaffey Avatar answered Jul 04 '26 01:07

Terry Mahaffey


RTTI is built into the C++ language. However, you'll find a few RTTI-related, convenient tools in Boost, e.g. Boost.TypeTraits which enables you to checks such as is_base_of(), has_trivial_constructor() and loads of other stuff. Boost.FunctionTypes might also be worth checking out.

like image 45
larsmoa Avatar answered Jul 03 '26 23:07

larsmoa