I have a class template Obj1 with three template parameters
template < class A, class B, class C >
class Obj1
{
// some implementation
};
and the second class template Obj2 with two template parameters,
template < class A, class B >
class Obj2
{
// some implementation
};
so my problem is the following:
I want to make the class Obj1 to be the friend of class Obj2, with the first two template parameters with the same value, but I do not know the exact syntax how to write it, At first i tryed this way
template < class A, class B>
class Obj2
{
template< class C>
friend class Obj1<A,B,C>;
};
but it did not compile, so pleas help me if you can.