Let's go!!!!!
发布时间:2017-02-20 23:25:07
例子1:class Foo{ public: void methodA(); void methodInt(int a);};class Bar{ public: void methodB();};boost::function<void()> f1; // 无参数,无返回值Foo foo;f1 = boost::bind(&Foo::methodA, &foo);f1(); // 调用 foo.methodA();Bar bar;f1 = bo.........【阅读全文】