Posted on 1998-08-29
Hi I have the following problem
template<class A1, class A2) class A;
template<class B1, class B2) class B;
Class A and B are lists.
I want them to be able to export and recive data from other lists.
The first argument shows what type of is the list working with.
The second argument shows the type of data of the object the export is adresed to.
I have a problem when trying to export to an object of the same type.
A<SomeDataType, A> a;
The compiler give an error message saying that an < and not an > is espected for the A argument. That because the A argument is a template and needs it's own parameters defined. Providing the A argument with it's own arguments perpetuates the problem forever, as the new given A argument will need it's own arguments.
Can you please help ?