Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jitify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,12 @@ struct type_reflection {
// WAR for typeid discarding cv qualifiers on value-types
// Wrap type in dummy template class to preserve cv-qualifiers, then strip
// off the wrapper from the resulting string.
std::string wrapped_name =
#ifdef _MSC_VER
std::string wrapped_name = typeid(JitifyTypeNameWrapper_<T>).name();
#else
std::string wrapped_name =
demangle_native_type(typeid(JitifyTypeNameWrapper_<T>));
#endif
// Note: The reflected name of this class also has namespace prefixes.
const std::string wrapper_class_name = "JitifyTypeNameWrapper_<";
size_t start = wrapped_name.find(wrapper_class_name);
Expand Down