All pastes #260594 Raw Edit

Mine

public cpp v1 · immutable
#260594 ·published 2006-11-28 14:56 UTC
rendered paste body
/* in file1 */template <typename T> class type_info{public:	static T one() {		return (T(0));	}	static T zero() {		return (T(0));	}};template <> class type_info<float>{public:	static float one() {		return 1.0f;	}	static float zero() {		return 0.0f;	}};/* gives error when using like: */type_info<S>::one()/* Error: "type_info: ambiguous symbol */