diff options
| author | practicalswift <[email protected]> | 2017-05-13 17:52:14 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-05-13 17:59:09 +0200 |
| commit | 1b936f59264a4f4a867baece1e0ee4ec02f73cee (patch) | |
| tree | bee678b62d3ab3e0cda83144f0f2a8ddf25d777d /src/httprpc.cpp | |
| parent | Merge #10308: [wallet] Securely erase potentially sensitive keys/values (diff) | |
| download | discoin-1b936f59264a4f4a867baece1e0ee4ec02f73cee.tar.xz discoin-1b936f59264a4f4a867baece1e0ee4ec02f73cee.zip | |
Replace boost::function with std::function (C++11)
Diffstat (limited to 'src/httprpc.cpp')
| -rw-r--r-- | src/httprpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 21c64c5c8..30ab2d090 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -30,7 +30,7 @@ static const char* WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\""; class HTTPRPCTimer : public RPCTimerBase { public: - HTTPRPCTimer(struct event_base* eventBase, boost::function<void(void)>& func, int64_t millis) : + HTTPRPCTimer(struct event_base* eventBase, std::function<void(void)>& func, int64_t millis) : ev(eventBase, false, func) { struct timeval tv; @@ -52,7 +52,7 @@ public: { return "HTTP"; } - RPCTimerBase* NewTimer(boost::function<void(void)>& func, int64_t millis) + RPCTimerBase* NewTimer(std::function<void(void)>& func, int64_t millis) { return new HTTPRPCTimer(base, func, millis); } |