G
Guest
Hey,
I am trying to wrap an unmanaged library in managed c++ so that I can use
this library in other .NET languages, such as C#. I've been successful for
the most part this far, but I'm having a hard time figuring out how to wrap
template classes. I'm getting an C3231 compile error when I try to use the
generic type as a template type.
Here's an example from the MSDN C3231 compile error site:
template <class T> class A;
generic <class T>
ref class C {
void f() {
A<T> a; // C3231
}
};
Does anyone know how to work around this?
Best regards,
Rune Vistnes
I am trying to wrap an unmanaged library in managed c++ so that I can use
this library in other .NET languages, such as C#. I've been successful for
the most part this far, but I'm having a hard time figuring out how to wrap
template classes. I'm getting an C3231 compile error when I try to use the
generic type as a template type.
Here's an example from the MSDN C3231 compile error site:
template <class T> class A;
generic <class T>
ref class C {
void f() {
A<T> a; // C3231
}
};
Does anyone know how to work around this?
Best regards,
Rune Vistnes