| 1 | #include <boost/function.hpp>
|
|---|
| 2 | #include <boost/function_equal.hpp>
|
|---|
| 3 |
|
|---|
| 4 | typedef boost::function<void (int)> func_type;
|
|---|
| 5 |
|
|---|
| 6 | bool
|
|---|
| 7 | cmp (func_type f)
|
|---|
| 8 | {
|
|---|
| 9 | return f == func_type ();
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | bool
|
|---|
| 14 | cmp2 (func_type f)
|
|---|
| 15 | {
|
|---|
| 16 | return boost::function_equal (f, func_type ());
|
|---|
| 17 | }
|
|---|