Managed c++ template.

  • Thread starter Thread starter Elephant
  • Start date Start date
E

Elephant

Hello,

how does one create a managed c++ template?

The following doesn't seem to be the correct syntax:

template<typename T> public __gc class TestClass{...}; // Compiler error:
"Syntax error: '<end Parse>'"

Thank you for any answers,

me.
 
how does one create a managed c++ template?

The following doesn't seem to be the correct syntax:

template<typename T> public __gc class TestClass{...}; // Compiler error:
"Syntax error: '<end Parse>'"

Templates are not supported on __gc or __value classes on MC++, so that
won't work. They are supported (with a few gotcha's) on the C++/CLI syntax
coming on in Visual Studio 2005, though...
 
Back
Top