1-yes, 2-noI agree with your first point. It is really just aliasing. I had mis-used some words such as static functions. It is not private function. farray is a pointer to array of functions. farray is a private member of class Object.
So the problem is that the keyword static is not allowed to be omitted, otherwise compiler complains as shown in the error message
[quote]
menu1.cpp:17: 'void (Object::* Object::farray[3]()' is not a static member of 'class Object'
[/quote]
So you see the problem?
I saw your problem. But I don't think that's the
point.
I compiled the following code using g++ version 2.95.2 on Solaris:
class Object {
private:
typedef void (Object::*Omf)();
/*static*/ Omf farray[3];
};
Compilation gave no error. I suppose the error was caused by other factors.
I compiled the following code using g++ version 2.95.2 on Solaris:
class Object {
private:
typedef void (Object::*Omf)();
/*static*/ Omf farray[3];
};
Compilation gave no error. I suppose the error was caused by other factors.