这段代码输出多少,为什么,谢谢
本帖最后由 sanquzhai 于 2013-06-04 15:16:06 编辑
class Foo
{
public:
static void f2(int k){
cout<<k<<endl;
}
};
template<class op3>
void fn(op3 op, int m, int n, int x)
{
op(m, n,x);
}
int main()
{
fn(bind(bind(&Foo::f2,placeholders::_1),placeholders::_2,placeholders::_3),10,20,30);
system("pause");
return 0;
}