mirror of
https://github.com/boostorg/function.git
synced 2026-07-08 17:30:51 +02:00
951cb3acd4
[SVN r16711]
19 lines
283 B
C++
19 lines
283 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);
|
|
|
|
}
|
|
|