next up previous
Next: How do I write Up: What are templates? Previous: How do I write

How do I specify a friend template class?

Like that:
class A
{
  template<class> friend class B; 
  friend class B <class T>;
};



Alexis Angelidis (PhD) 2005-01-11