Thread View: gnu.g++
1 messages
1 total messages
Started by FISK%BOWDOIN.BITNET
Tue, 09 May 1989 20:31
overloading operators on pointers to a class
Author: FISK%BOWDOIN.BITNET
Date: Tue, 09 May 1989 20:31
Date: Tue, 09 May 1989 20:31
11 lines
851 bytes
851 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads