Is it possible to create operator overloads for non-objects (like typedef-ed arrays)?
Typedefs are just aliases, they don't "create a new type". So, you have to overload the operator for the underlying type. You can also overload with the typedef, but that will just overload for the underlying type as well. So, basically, the rule applies as for the underlying type. If … Read More
Yes, definitely. C++ cannot allow you to overload operators for its built-in types or any array of them, that would be too easy to abuse and too dangerous, with no gain. You definitely need to wrap this in a class, and you should also want to do so, because defining … Read More
Edited by mike_2000_17: n/a