I can't figure out why the overloading doesn't work. It works if I explicitly use the operator. Does the compiler get confused when not explicity using the operator?
What am I doing wrong?
Yes of course. I really didn't have a clear idea about what I was doing. The dereference operator works on a MyInt type, not a pointer to a MyInt as I first thought.