Skip to content

Commit b28c229

Browse files
committed
Merge pull request #6899
a83f3c2 Add explicit shared_ptr constructor due to C++11 error (Bob McElrath)
2 parents b2ce2c1 + a83f3c2 commit b28c229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ void RPCRunLater(const std::string& name, boost::function<void(void)> func, int6
563563
deadlineTimers.erase(name);
564564
RPCTimerInterface* timerInterface = timerInterfaces[0];
565565
LogPrint("rpc", "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name());
566-
deadlineTimers.insert(std::make_pair(name, timerInterface->NewTimer(func, nSeconds*1000)));
566+
deadlineTimers.insert(std::make_pair(name, boost::shared_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000))));
567567
}
568568

569569
const CRPCTable tableRPC;

0 commit comments

Comments
 (0)