diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index 6b139a2..7d47faf 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -57,6 +57,20 @@ template std::string typeid_name() #endif + // libc++ inline namespace + + if( r.substr( 0, 10 ) == "std::__1::" ) + { + r = "std::" + r.substr( 10 ); + } + + // libstdc++ inline namespace + + if( r.substr( 0, 14 ) == "std::__cxx11::" ) + { + r = "std::" + r.substr( 14 ); + } + return r; }