template as a friend? (Expert question:)
-
Hi all, following code produces compiler error --header1-- template < class T > class myclass{ } --header2-- class myclass1{ friend class myclass;//<--this line .. } This compiles without problems with VS2003, but produce error, that myclass is allready defined as a template with VS2005Express beta1. How should I write? (friend template < class T > class myclass fails too)! Thanks in advance, boni
-
Hi all, following code produces compiler error --header1-- template < class T > class myclass{ } --header2-- class myclass1{ friend class myclass;//<--this line .. } This compiles without problems with VS2003, but produce error, that myclass is allready defined as a template with VS2005Express beta1. How should I write? (friend template < class T > class myclass fails too)! Thanks in advance, boni