From c922edd00f376ab148be8e730f0d8768bcacbfb8 Mon Sep 17 00:00:00 2001 From: Bob McElrath Date: Wed, 28 Oct 2015 22:25:32 -0400 Subject: [PATCH] Add explicit shared_ptr constructor due to C++11 error --- src/rpcserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index ec1038dc5..2e8aa5aad 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -609,7 +609,7 @@ void RPCRunLater(const std::string& name, boost::function func, int6 deadlineTimers.erase(name); RPCTimerInterface* timerInterface = timerInterfaces[0]; LogPrint("rpc", "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name()); - deadlineTimers.insert(std::make_pair(name, timerInterface->NewTimer(func, nSeconds*1000))); + deadlineTimers.insert(std::make_pair(name, boost::shared_ptr(timerInterface->NewTimer(func, nSeconds*1000)))); } const CRPCTable tableRPC;