Passing a member function as standard function callback

前端 未结 2 1324
一生所求
一生所求 2021-01-25 17:04

I\'ve been struggling for hours with the same part of the code, and I cannot find any answer that can guide me.

I\'m using a library, and a method requires to pass a cal

2条回答
  •  无人及你
    2021-01-25 17:37

    The "classic" way to use callbacks is to declare your callback function static.

提交回复
热议问题