65,184
社区成员




#define PRINT_MSG(msg) printf("%s,%d, %s\n", __FILE__, __LINE__, msg)
#define CALL_FUNC(arg) 某类的方法名
ClassA testa;
#define CALL_FUNC(arg) testa.func(arg)
class T
{
public:
void Test()
{
std::function<void(int)> func = std::bind(&T::Do, this, placeholders::_1);
func(123);
}
void Do(int t)
{ }
};
int main(int, char**)
{
T t;
t.Test();
system("pause");
return 0;
}