Comment by akdev1l
I think none of these points are demonstrated in the post hence I fail to visualize it
Also I copy pasted the code from the post and I got this:
test.cpp:70:14: error: assigning to 'void ' from 'func0Ptr' (aka 'void ()(void *)') converts between void pointer and function pointer 70 | res.fn = (func0Ptr)fn;
Thanks, fixed.
It works in msvc but as someone pointed out, it was a typo and was meant to be (void*) cast.