使用std::bind绑定成员函数

在Cocos2d-x中看到CC_CALLBACK_2的宏定义,绑定成员函数实现触屏事件的处理,写了一个测试代码模拟函数调用的过程。 // TestCpp.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <functional> #include <iostr
相关文章
相关标签/搜索