You are absolutely right. And thank you spotting out our mistake. I will never forget thisThat's why it's impossible in C++![]()
BTW: did you try out what was said here. Or you got it at the first go ?
You are absolutely right. And thank you spotting out our mistake. I will never forget thisThat's why it's impossible in C++![]()
BTW: did you try out what was said here. Or you got it at the first go ?
We can't solve problems by using the same kind of thinking we used when we created them
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.
Bookmarks