mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Workaround tr1::functional bugs.
This commit is contained in:
@@ -113,9 +113,13 @@ public:
|
||||
processSession (job, session);
|
||||
#else
|
||||
session.detach();
|
||||
m_jobQueue.addJob (jtRPC, "RPC", bind (
|
||||
&RPCHTTPServerImp::processSession, this, _1,
|
||||
ref (session)));
|
||||
|
||||
// The "boost::"'s are a workaround for broken versions of tr1::functional that
|
||||
// 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user