[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Virtual Functions and Member Pointers



I can't seem to get G++ to let me have a pointer to a virtual function...
The type of int (MyTest::*func)(midStatus &) is as below...

test_net.cc:30: cannot convert `((MyTest::_vptr.MyTest + 8) + 4)' from
type `void *const *' to type `int (MyTest::*)(midStatus &)'

This really screws up the MP stuff -- as I can't register a virtual
callback (I already have a pointer to the class itself, so the fact that
it is virtual should not be a problem!)

Help.

Andrew