在C ++中实现回调函数时,我仍应使用C样式函数指针:
void (*callbackFunc)(int);
或者我应该使用std :: function:
std::function< void(int) > callbackFunc;
跃然一笑
白衣染霜花
相关分类