Mail Archives: djgpp/1997/12/30/02:06:13
Hye,
Anyone who can, plaease answer this:
I have a class A:
class A {
public:
...
private:
typedef short (A::*func)();
func arr[7];
short b();
...
};
which is in one of few files in linked in my makefile.
when I run make I receive this message:
c:/misc/djgpp/tmp\cccaaaaa:207 Error: Rest of line ignored first ignored
character is ':';
The linking is OK when I change the typedef above with this:
typedef short (*func)();
BUT, I MEED the first typedef because when I do this:
arr[3] = b;
I get this message:
assignment to 'short int (*)()' from 'short int (A::*)()'
WHAT SHOULD I DO ????
thanks,
Ofer
- Raw text -