[gnu.g++] overloading operators on pointers to a class

FISK%BOWDOIN.BITNET@MITVMA.MIT.EDU (05/10/89)

I would like to overload an operator that is defined on pointers
to a class.  Here is what I would like to do.  Is this possible?

struct M { ... };
typedef struct M* P;
P a,b,c;
a = b+c   // the "+" should be something like P::operator+(P,P)
--
Steve Fisk                              Department of Mathematics
207-725-3574                            Bowdoin College
fisk@bowdoin.bitnet                     Brunswick, Me. 04011 USA