| Home | Libraries | People | FAQ | More

## Code bloat

Without RTTI TypeIndex library will switch from using `boost::typeindex::stl_type_index` class to `boost::typeindex::ctti_type_index`. `boost::typeindex::ctti_type_index` uses macro for getting full text representation of function name for each type that is passed to `type_id()` and `type_id_with_cvr()` functions.

This leads to big strings in binary file:

    static const char* boost::detail::ctti<T>::n() [with T = int]
    static const char* boost::detail::ctti<T>::n() [with T = user_defined_type]

While using RTTI, you'll get the following (more compact) string in binary file:

    i
    17user_defined_type