jitify
jitify copied to clipboard
Add simple fix for MSVC name mangling
I don't know if I am the only person who encounters this, but when I use Jitify in my project (https://github.com/projectchrono/DEM-Engine), on Windows with MSVC, the jit-ed kernel name mangling was never right, until I added this basically one-line fix. I hope my fix can be incorporated, but if the problem was due to the fact that I incorrectly used Jitify on Windows, kindly let me know, too.
Platform compatibility improvement:
- Modified the
type_reflectionstruct injitify.hppto usetypeid(...).name()directly on MSVC, while retaining the use ofdemangle_native_typefor other platforms. This addresses differences in how type names are handled between compilers.