fix issue with stripping pointer from typename in GCC
@@ -1622,9 +1622,12 @@ namespace internal
static void trim_name(char *typeName) {
size_t len = strlen(typeName);
if (typeName[len - 1] == '*') {
+ typeName[len - 1] = '\0';
+ if (typeName[len - 2] == ' ') {
typeName[len - 2] = '\0';
}
}
+ }
};
#if defined(__clang__)
