Workaround tr1::functional bugs.

This commit is contained in:
JoelKatz
2013-09-22 15:14:31 -07:00
parent e04dbdde19
commit b0c37d62fe

View File

@@ -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
}