mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Merge branch 'crossplatform_archiver' into 'master'
Fix cross-platform archiving See merge request jschoeberl/netgen!381
This commit is contained in:
commit
b89f8b1764
@ -13,7 +13,15 @@ namespace ngcore
|
||||
|
||||
#ifdef WIN32
|
||||
// windows does demangling in typeid(T).name()
|
||||
NGCORE_API std::string Demangle(const char* typeinfo) { return typeinfo; }
|
||||
NGCORE_API std::string Demangle(const char* typeinfo) {
|
||||
std::string name = typeinfo;
|
||||
// remove "class " and "struct " at beginning of type names to be consistent with demangled names of gcc/clang
|
||||
if(name.find("class ") == 0)
|
||||
name.erase(0,6);
|
||||
if(name.find("struct ") == 0)
|
||||
name.erase(0,7);
|
||||
return name;
|
||||
}
|
||||
#else
|
||||
NGCORE_API std::string Demangle(const char* typeinfo)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user