Opened 4 years ago

Closed 4 years ago

#13621 closed Bugs (fixed)

ctti_type_index missing first letter in generated class name

Reported by: rponczkowski@… Owned by: Antony Polukhin
Milestone: Boost 1.65.0 Component: type_index
Version: Boost 1.63.0 Severity: Problem
Keywords: ctti_tye_index c++14 Cc:

Description

Code:

#include <iostream>

#include <boost/type_index/ctti_type_index.hpp>

class empty
{
};

int main()
{
    std::cout << boost::typeindex::ctti_type_index::type_id<empty>().pretty_name() << std::endl;
}

prints: "mpty" instead of expected: 'empty'. Problem occurs on gcc version 7.3.1 20180303 when compiled with flag -std=c++14 or c++17. It works ok when compiling with -std=c++11

Change History (1)

comment:1 by Antony Polukhin, 4 years ago

Milestone: To Be DeterminedBoost 1.65.0
Resolution: fixed
Status: newclosed

This was probably fixed in in this PR for Boost-1.65.0.

Anyway, I've added your test cases here and double checked that on GCC-7.3 they pass.

Note: See TracTickets for help on using tickets.