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

Re: Virtual Functions and Member Pointers



Andrew J Berkley wrote:
> 
> 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 &)'


Can you post the exact code that generates this?

Intrigado...

-- 
Alejandro J. Cura                 |              alecu@mnemonic.org
Mnemonic Browser Project          |         http://www.mnemonic.org