Is it possible in C++ for the compiler/language to automatically deduce unimplemented operators?
For example, if I have:
class X
{
public:
bool operator ==(const X &x) const;
};
Is there a way for != to be deduced implicitly?
And I'll exploit this questions for a semi-related one: How come map's only requirement from it's keys is to implement the < operator? How does it compare for equality?