Boost logo

Boost :

Subject: Re: [boost] Formal review request: TypeIndex library
From: Michel Morin (mimomorin_at_[hidden])
Date: 2012-07-23 11:22:40


Antony Polukhin wrote:
> TypeIndex is an extended C++11 type_index library, that
>
> * works with disabled RTTI
> * can store const-volatile-reference info about types (if user requested it)
> * has all the functionality of std::type_index
> * has portable across compilers and platforms functionality for
> getting demangled type names
> * works across modules/shared libraries
> * does not require C++11 to work
>
> Docs: http://apolukhin.github.com/type_index/index.html

Is there a list of supported compilers in the doc?
Currently, clang-3.1 is not supported.
(On clang-3.1, `template_id_with_cvr<int const&>().name_demangled()`
returns `const int &>::n() [T = const `.)

Please note that, in general, clang does not recommend to use
version checks, because the version number of clang is not consistent
between the vendors. For example, LLVM project's clang-3.1 is different
from Apple clang-3.1. `template_id_with_cvr<...>().name_demangled()`
returns the correct name on the latter compiler, but it returns incorrect
name on the former compiler. To distinguish these compilers, you cannot
use `__clang_major__` and `__clang_minor__` macros; maybe you need
to use `__clang_version__` macro.

Regards,
Michel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk