You cannot do that. Operator functions are only considered for operands that have enumeration or class types among them.
You after all shift a pointer, but not a class. You need to explicitly say that you want to shift into a class object by dereferencing the pointer first.