how to use generic?

L

Lloyd Dupont

due to cross reference I need to separate declaration and implementation.

in my header I have something like that:
--StyledRange.h--

generic <class T> ref class StyledRange;
generic <class T> public ref class StyledItem
{
StyledItem(StyledRange<T>^ r, int pos, int len);
}

--StyledRange.cpp--
StyledItem::StyledItem(NText::StyledRange<T>^ r, int pos, int len)
{
}

but this cpp file don't compiles it says: use of class generic requires
generic argument list.
but I didn't manage to find the right syntax :-(

Anyone knows?
 

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

Top