Files
function/test/mem_fun_portable.cpp
Douglas Gregor 9bc263cf97 Regenerated
[SVN r17084]
2003-01-30 04:42:06 +00:00

27 lines
247 B
C++

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