Primitive types pass template parameter between c++ and CLI

前端 未结 1 1566
深忆病人
深忆病人 2021-01-23 03:37

I have a c++ templated class:

template
class A {
    void test (T temp) { }
};

But i need to wrap it in CLI so it can be used in

相关标签:
1条回答
  • 2021-01-23 04:32

    What you are using in C# are generics, not templates. There is no way of specializing a C++/CLI template from C#.

    0 讨论(0)
提交回复
热议问题