Are there any restrictions other than these?

1) The operators :: (scope resolution), . (member access), .* (member access through pointer to member), and ?: (ternary conditional) cannot be overloaded. 2) New operators such as **, <>, or &| cannot be created. 3) The overloads of operators && and || lose short-circuit evaluation. 4) The overload of operator -> must either return a raw pointer or return an object (by reference or by value), for which operator -> is in turn overloaded.

26th Feb 2017, 11:30 PM
Ahmed Al-Jawadi
Ahmed Al-Jawadi - avatar
1 Answer
for the valid operators, some of them require either 1 or 2 parameters exactly. along with a specific return value. usually the object or a boolean. other than. that u got em all lol
28th Feb 2017, 7:03 AM
Michael Szczepanski
Michael Szczepanski - avatar