A
Angel Tsankov
Let's say we have a class template:
template< typename t >
class c;
and a function template:
template< typename t1, typename t2 >
bool operator ==
(
c< t1 > const&
, c< t2 > const&
);
Now we want operator ==< t1, t2 > to be a friend of class c< t3 > ONLY for t1 = t3 or t2 = t3. How do we specify this?
template< typename t >
class c;
and a function template:
template< typename t1, typename t2 >
bool operator ==
(
c< t1 > const&
, c< t2 > const&
);
Now we want operator ==< t1, t2 > to be a friend of class c< t3 > ONLY for t1 = t3 or t2 = t3. How do we specify this?