Anyone know how to can make un function pointer in c++ to subclass member
function ?
Example
class Class_1
{
void (*nomFunc) (int);
...
}
class Class_2: public Class_1
{
void foo (int x);
Class_2 ();
}
Class_2::Class_2 ()
{
nomFunc = &Class_2.foo;
}
Regards,
--
----------------------------------------
Luciano Soares Pinheiro Jr.
Analista desenvolvedor Sr.
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.