Fix non c++11 gcc build errors

This commit is contained in:
Vinnie Falco
2013-09-05 06:04:20 -07:00
parent eac898a26f
commit 4819714edf
4 changed files with 10 additions and 4 deletions

View File

@@ -165,7 +165,9 @@ public:
try
{
mMap [cpClient] = boost::make_shared< WSConnectionType <endpoint_type> > (m_source, *this, cpClient);
mMap [cpClient] = boost::make_shared <
WSConnectionType <endpoint_type>
> (boost::ref (m_source), boost::ref(*this), boost::cref(cpClient));
}
catch (...)
{

View File

@@ -44,6 +44,7 @@ public:
{
m_peer = other.m_peer;
m_inbound = other.m_inbound;
return *this;
}
/** Returns `true` if there is no connection. */

View File

@@ -41,7 +41,9 @@ public:
{
// VFALCO NOTE Why not use make_shared?
RPCServerImp::pointer new_connection (boost::make_shared <RPCServerImp> (
mAcceptor.get_io_service (), m_sslContext->get (), m_rpcServerHandler));
boost::ref (mAcceptor.get_io_service ()),
boost::ref (m_sslContext->get ()),
boost::ref (m_rpcServerHandler)));
mAcceptor.set_option (boost::asio::ip::tcp::acceptor::reuse_address (true));

View File

@@ -190,6 +190,7 @@ RPCSub::pointer RPCSub::New (InfoSub::Source& source,
const std::string& strUrl, const std::string& strUsername,
const std::string& strPassword)
{
return boost::make_shared <RPCSubImp> (source, io_service, jobQueue,
strUrl, strUsername, strPassword);
return boost::make_shared <RPCSubImp> (boost::ref (source),
boost::ref (io_service), boost::ref (jobQueue),
strUrl, strUsername, strPassword);
}