Commit 5aa929e6 authored by Dominik Charousset's avatar Dominik Charousset

Merge branch 'unstable' of github.com:Neverlord/libcppa into unstable

parents d327495a 6a9b506a
......@@ -79,6 +79,14 @@ std::string demangle(const char* decorated) {
}
}
free(undecorated);
# ifdef __clang__
// replace "std::__1::" with "std::" (fixes strange clang names)
std::string needle = "std::__1::";
std::string fixed_string = "std::";
for (auto pos = result.find(needle); pos != std::string::npos; pos = result.find(needle)) {
result.replace(pos, needle.size(), fixed_string);
}
# endif
return result;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment