mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 05:17:22 +02:00
Strip libstdc++ and libc++ inline namespaces
This commit is contained in:
@ -57,6 +57,20 @@ template<class T> std::string typeid_name()
|
|||||||
|
|
||||||
#endif
|
#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;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user