mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Workaround tr1::functional bugs.
This commit is contained in:
@@ -113,9 +113,13 @@ public:
|
|||||||
processSession (job, session);
|
processSession (job, session);
|
||||||
#else
|
#else
|
||||||
session.detach();
|
session.detach();
|
||||||
m_jobQueue.addJob (jtRPC, "RPC", bind (
|
|
||||||
&RPCHTTPServerImp::processSession, this, _1,
|
// The "boost::"'s are a workaround for broken versions of tr1::functional that
|
||||||
ref (session)));
|
// require the reference wrapper to be callable. HTTP::Session has abstract functions
|
||||||
|
// and so references to it are not callable.
|
||||||
|
m_jobQueue.addJob (jtRPC, "RPC", boost::bind (
|
||||||
|
&RPCHTTPServerImp::processSession, this, boost::_1,
|
||||||
|
boost::ref (session)));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user