Template member functions conflicting

Robin Allen r.a3 at ntlworld.com
Sun Feb 18 02:59:35 PST 2007


class Bang(T)
{
	void fn(U)( Bang!(U) ot) {}
	
	void fn(int q) {}
}

Why do the two member functions conflict here? One takes a class 
instance and a type, the other takes an int.

If this is intended, and it's not possible to overload a function with a 
template function, then maybe it should be?


More information about the Digitalmars-d-learn mailing list