*/
-#include <boost/function.hpp>
+#include <functional>
#include <set>
class Suspender
{
public:
- Suspender (boost::function<void (int)> handler);
+ Suspender (std::function<void (int)> handler);
bool check (int property);
void increment ();
void decrement ();
- boost::function<void (int)> _handler;
- int _count;
+ std::function<void (int)> _handler;
+ int _count = 0;
std::set<int> _pending;
};