[Q] Yikes! templates as friends

Bernd Knochenhauer bones@nwu.de
Tue Dec 9 14:39:00 GMT 1997


First off, great work!

I hope this hasn´t been asked too many times before:

template<class T> class A {
	int x;
};

class B {
	friend class A<class T>;              // This works
	//template<class T> friend class A;      This doesn´t
};

Is this correct behaviour ?





More information about the Gcc-bugs mailing list