mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix non c++11 gcc build errors
This commit is contained in:
@@ -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 (...)
|
||||
{
|
||||
|
||||
@@ -44,6 +44,7 @@ public:
|
||||
{
|
||||
m_peer = other.m_peer;
|
||||
m_inbound = other.m_inbound;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/** Returns `true` if there is no connection. */
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user