#include #include typedef boost::function func_type; bool cmp (func_type f) { return f == func_type (); } bool cmp2 (func_type f) { return boost::function_equal (f, func_type ()); }