This is because a member function of a base class will only be able to access member data and/or member functions of the base class only. There is a predefined conversion from a pointer to a member function of a base class to a pointer to a member function of a derived class but not the reverse. > 'newline' : cannot convert from 'Base *_w64 ' to 'Derived *_w64 ' '.*' : cannot dereference a 'callbackf' on a 'Base' You have to make other modifications to your overall code if you do decide to make the above change. callbackf is already a pointer and so MYLIST can simply be stated as : You need not declare the mapped object type as "callbackf*". ![]() is related to your type definition of MYLIST : ![]() > I am getting two errors: 'initializing' : cannot convert from 'void *' to 'callbackf' ![]() I am getting two errors: 'initializing' : cannot convert from 'void *' to 'callbackf' 'newline' : cannot convert from 'Base *_w64 ' to 'Derived *_w64 ' '.*' : cannot dereference a 'callbackf' on a 'Base'
0 Comments
Leave a Reply. |