![]() |
Home | Libraries | People | FAQ | More |
Copyright © 2012, 2013 Antony Polukhin
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Table of Contents
Sometimes getting and storing information about a type at runtime is required.
For such cases a construction like &typeid(T) or C++11 class std::type_index
is usually used. And that is the point, where problems start:
typeid(T) and
std::type_index require Run Time Type Info
(RTTI)
typeid(T)
strip const, volatile and references from type, while others don't
std::type_info
objects across shared libraries
std::type_index
Boost.TypeIndex library was designed to work around all those issues.
![]() |
Note |
|---|---|
|
![]() |
Warning |
|---|---|
During the Boost review was decided, that it is better to use interface close to v1.0 of this library. Version 3.0 will attempt to fix all the issues found during the review. |
Last revised: January 11, 2014 at 14:36:03 GMT |