This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
friend template class
- To: egcs at cygnus dot com
- Subject: friend template class
- From: Christian Kueblbeck <kue at iis dot fhg dot de>
- Date: Thu, 29 Oct 1998 10:02:43 +0100
- Organization: Fraunhofer Institute for Integrated Circuits
The following piece of code does not compile:
template <class T> class Test
{
friend class Friend<T>;
};
g++ 2.7.1 compiles without warning (as well as MS Visual C++), but egcs
says:
parse error before `<'
How else should I declare friend template class?
Can anyone help me?