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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top