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

21 lines
296 B
C++

#include <boost/function.hpp>
#include <iostream>
struct stateful_type { int operator()(int) const { return 0; } };
int main()
{
stateful_type a_function_object;
boost::function<int (int)> f;
f = boost::ref(a_function_object);
boost::function<int (int)> f2(f);
return 0;
}