boost::bind后
void StaticFunc() { std::cout<<"Hello! This is boost::bind's first STATIC_FUNCTION bind"<<std::endl; } class BindedObject { public: BindedObject(int _data) : mData(_data){} public: void show() { std::cout<<"Hello! This is boost::bind's first MEMBER_FUNCTION bind"<<std::endl; } void showData() { std::cout<<"mData = "<<mData<<std::endl; } private: int mData; }; int _tmain(int argc, _TCHAR* argv[]) { // 绑定全局函数并调用 boost::bind(&StaticFunc)(); // 绑定成员函数并调用(固定了操作的对象) boost::bind(&BindedObject::show, BindedObject(0))(); // 另一种绑定成员函数并调用(没有固定操作的对象,推荐) boost::bind(&BindedObject::show, _1)(new BindedObject(0)); }已经bind了, bind 后,干嘛呢???