使用std::bind綁定成員函數

在Cocos2d-x中看到CC_CALLBACK_2的宏定義,綁定成員函數實現觸屏事件的處理,寫了一個測試代碼模擬函數調用的過程。 // TestCpp.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <functional> #include <iostr
相關文章
相關標籤/搜索