N
Neo
hi,
I searched in the groups here but didnt find any post answering my
question. My question is I need the address of the member function in
the same class. Is there anyway to go about it other than making the
func static?
For ex:
class foo {
some_type x
void fa();
----
}
Now in its constructor-
foo::foo() {
x = <adddress_of_fa>;
}
how do I do the above?? I tried &(this->fa) but it says "C++ forbids
taking the address of a bound member function to form a pointer"
Thanks,
Neo
I searched in the groups here but didnt find any post answering my
question. My question is I need the address of the member function in
the same class. Is there anyway to go about it other than making the
func static?
For ex:
class foo {
some_type x
void fa();
----
}
Now in its constructor-
foo::foo() {
x = <adddress_of_fa>;
}
how do I do the above?? I tried &(this->fa) but it says "C++ forbids
taking the address of a bound member function to form a pointer"
Thanks,
Neo