Files
function/test/mem_fun_portable.cpp

23 lines
202 B
C++
Raw Normal View History

#include <boost/function.hpp>
#include <iostream>
#include <functional>
struct X {
int foo(int);
};
int main()
{
boost::function2<int, X*, int> f;
f = &X::foo;
X x;
f(&x, 5);
}