Strip libstdc++ and libc++ inline namespaces

This commit is contained in:
Peter Dimov
2021-09-29 19:34:37 +03:00
parent 3e0bc52c32
commit 06023d4ffe

View File

@ -57,6 +57,20 @@ template<class T> 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;
}