summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-06 11:30:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-06 16:28:25 +0100
commit2af98ee6d7f3da1f0a5ac8f8b507b709784b957c (patch)
tree32ff997154f83e0eaee3f14ce365f906395a52ec
parentC++17 (diff)
downloadlibadhocutil-2af98ee6d7f3da1f0a5ac8f8b507b709784b957c.tar.bz2
libadhocutil-2af98ee6d7f3da1f0a5ac8f8b507b709784b957c.tar.xz
libadhocutil-2af98ee6d7f3da1f0a5ac8f8b507b709784b957c.zip
C++17
Remove all boost things now in the standard library from scope exit.
-rw-r--r--libadhocutil/scopeExit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libadhocutil/scopeExit.h b/libadhocutil/scopeExit.h
index 73c2ca2..af9a645 100644
--- a/libadhocutil/scopeExit.h
+++ b/libadhocutil/scopeExit.h
@@ -1,7 +1,7 @@
#ifndef ADHOCUTIL_SCOPEEXIT_H
#define ADHOCUTIL_SCOPEEXIT_H
-#include <boost/function.hpp>
+#include <functional>
#include <vector>
#include "visibility.h"
@@ -11,7 +11,7 @@ namespace AdHoc {
class DLL_PUBLIC ScopeExit {
public:
/** Callback for code to be run. */
- typedef boost::function<void()> Event;
+ typedef std::function<void()> Event;
/**
* Construct an empty trigger for running code yet to be determined at scope exit