Quote Originally Posted by wysota View Post
I wonder if the behaviour is simmilar for all popular compilers.
It should be, at least if they are C++ compilers:
An operator function shall either be a non-static member function or be a non-member function and have at least one parameter whose type is a class, a reference to a class, an enumeration, or a reference to an enumeration.