|
template<int i1,int i2>
class One
{
template<int ii1,int ii2> friend ostream&operator<<(ostream&,const One<ii1,ii2>&);
template<int ii1,int ii2> friend void fun2(const One<ii1,ii2>&);
};
template<int ii1,int ii2> ostream&operator<<(ostream&x,const One<ii1,ii2>&){return x;}
template<int ii1,int ii2> void fun2(const One<ii1,ii2>&){}
template<class T>
class Two
{
template<class TT> friend ostream&operator<<(ostream&,const Two<TT>&);
template<class TT> friend void fun1(const Two<TT>&);
};
template<class TT> ostream&operator<<(ostream&x,const Two<TT>&){return x;}
template<class TT> void fun1(const Two<TT>&){} |
|