Has anyone tried mapping a C# generic to a C++ template? I am working on a ’round-about’ way of accessing a 64-bit List in C# (by implementing it in a C++ dll), and am curious if there is anything special to feeding a C++ templated function a C# generic.
Share
If I understand the question correctly, yes you can define managed ref classes in C++/CLI as templates and then access them from c#. The syntax to access them is the same as that of generics, but they are actually templates.
Template syntax for c++/CLI is described in wikipedia:
http://en.wikipedia.org/wiki/C%2B%2B/CLI#Template_syntax