C++11 tidying.
[dcpomatic.git] / src / wx / suspender.h
index 947d7a367fd6d13732702b5db09c8a5249368156..e01888823b5abe7231b6b8553481478f9e619c4d 100644 (file)
 */
 
 
-#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);
 
@@ -47,7 +47,7 @@ private:
        void increment ();
        void decrement ();
 
-       boost::function<void (int)> _handler;
-       int _count;
+       std::function<void (int)> _handler;
+       int _count = 0;
        std::set<int> _pending;
 };