This project is read-only.

Exposing typename<T> global functions

Jun 30, 2014 at 2:25 AM
Just out of curiosity. Is it possible?

Right now I am writing very verbose code to expose through extern "C" syntax. So if there is a known way to do it, I may end up writing the code to support it.
Jun 30, 2014 at 11:01 AM
Not sure if that's what you mean, but you can also expose non-extern "C" functions to C#. The only caveat is name mangling used in C++, so if you can find out the mangled name (e.g. with depends.exe), you can call the function from C#. But doing this you must stick to your current C++ compiler, as every compiler usually mangles differently...