From 1b936f59264a4f4a867baece1e0ee4ec02f73cee Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 13 May 2017 17:52:14 +0200 Subject: Replace boost::function with std::function (C++11) --- src/torcontrol.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/torcontrol.cpp') diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp index c1bd95b00..9e615142c 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -14,7 +14,6 @@ #include #include -#include #include #include #include @@ -73,8 +72,8 @@ public: class TorControlConnection { public: - typedef boost::function ConnectionCB; - typedef boost::function ReplyHandlerCB; + typedef std::function ConnectionCB; + typedef std::function ReplyHandlerCB; /** Create a new TorControlConnection. */ @@ -105,9 +104,9 @@ public: boost::signals2::signal async_handler; private: /** Callback when ready for use */ - boost::function connected; + std::function connected; /** Callback when connection lost */ - boost::function disconnected; + std::function disconnected; /** Libevent event base */ struct event_base *base; /** Connection to control socket */ -- cgit v1.2.3