>>756
これでは駄目なの?

template<class T> class A {
friend bool operator==(const A<T>& x, const A<T>& y);
};

template<class T> bool operator==(const A<T>& x, const A<T>& y)
{
return true;
}

int main()
{
return 0;
}