|
@@ -463,9 +463,11 @@ namespace STEP {
|
|
|
}
|
|
|
|
|
|
std::string GetClassName() const {
|
|
|
- // strictly speaking this relies on unspecified behaviour - we hijack the name() field of std::type_info
|
|
|
- const char* s = typeid(*this).name(), *s2 = strstr(s,"IFC::");
|
|
|
- return std::string(s2?s2+5:s);
|
|
|
+ // XXX this relies on unspecified behaviour - we hijack the name() field of std::type_info
|
|
|
+ // known to work as intended for only msvc 8, with gcc 4.5 it produces reasonable, but
|
|
|
+ // not totally unmangled output - we definitely need a traits-based solution here.
|
|
|
+ const char* s = typeid(*this).name(), *s2 = strstr(s,"Ifc");
|
|
|
+ return std::string(s2?s2:s);
|
|
|
}
|
|
|
|
|
|
void SetID(uint64_t newval) {
|