/*
- Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
-#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;
};