0
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.
1 Antwort
0
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