...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::type_erasure::typeid_
// In header: <boost/type_erasure/builtin.hpp> template<typename T = _self> struct typeid_ { };
Enables runtime type information. This is required if you want to use any_cast or typeid_of.
Note | |
---|---|
typeid_ cannot be specialized because several library components including any_cast would not work correctly if its behavior changed. There is no need to specialize it anyway, since it works for all types. typeid_ also cannot be passed to call. To access it, use typeid_of. |