return std::operator==(str1, str2);
or
return (str1.compare(str2) == 0);
Though I suspect you'll have ambiguous overload error, between your operator==
found by ordinary lookup, and std::operator==
found by argument-dependent lookup. In any case, attempting to change the meaning of str1 == str2
may not be the best idea; if nothing else, it violates the Principle of Least Astonishment.