c++ Function member pointer

前端 未结 4 1972
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 09:43

I have read several posts about this, but can\'t seem to find exactly what i am looking for with example code if anyone could give me some help i would highly appreciate it.

4条回答
  •  死守一世寂寞
    2021-01-29 10:10

    If I'm understanding your problem you get the error when you try to add a function to the list in addEvent?

    If you're adding a pointer to a non-static member function of a class ensure it has the right syntax... for example a function pointer to a a member function in TestClass would look like:

    void * (TestClass:: *) ()
    

提交回复
热议问题