mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 08:07:28 +05:00
23 lines
503 B
C++
23 lines
503 B
C++
|
|
#include "ngcore.hpp"
|
|
|
|
#ifndef WIN
|
|
#include <cxxabi.h>
|
|
#endif
|
|
|
|
namespace ngcore
|
|
{
|
|
#ifdef WIN
|
|
// windows does demangling in typeid(T).name()
|
|
std::string demangle(const char* typeinfo) { return typeinfo; }
|
|
#else
|
|
std::string demangle(const char* typeinfo) { int status; return abi::__cxa_demangle(typeinfo, 0, 0, &status); }
|
|
#endif
|
|
|
|
std::map<std::string, ClassArchiveInfo>& GetArchiveRegister()
|
|
{
|
|
static std::map<std::string, ClassArchiveInfo> type_register;
|
|
return type_register;
|
|
}
|
|
}
|