mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds std/boost::ref as needed for non-const references passed to make_shared
required for boost::make_shared to work without rvalue references.
This commit is contained in:
@@ -1980,7 +1980,7 @@ connection<config>::get_processor(int version) const {
|
||||
transport_con_type::is_secure(),
|
||||
m_is_server,
|
||||
m_msg_manager,
|
||||
m_rng
|
||||
lib::ref(m_rng)
|
||||
);
|
||||
break;
|
||||
case 8:
|
||||
@@ -1988,7 +1988,7 @@ connection<config>::get_processor(int version) const {
|
||||
transport_con_type::is_secure(),
|
||||
m_is_server,
|
||||
m_msg_manager,
|
||||
m_rng
|
||||
lib::ref(m_rng)
|
||||
);
|
||||
break;
|
||||
case 13:
|
||||
@@ -1996,7 +1996,7 @@ connection<config>::get_processor(int version) const {
|
||||
transport_con_type::is_secure(),
|
||||
m_is_server,
|
||||
m_msg_manager,
|
||||
m_rng
|
||||
lib::ref(m_rng)
|
||||
);
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -43,7 +43,7 @@ endpoint<connection,config>::create_connection() {
|
||||
//scoped_lock_type guard(m_mutex);
|
||||
// Create a connection on the heap and manage it using a shared pointer
|
||||
connection_ptr con = lib::make_shared<connection_type>(m_is_server,
|
||||
m_user_agent, m_alog, m_elog, m_rng);
|
||||
m_user_agent, lib::ref(m_alog), lib::ref(m_elog), lib::ref(m_rng));
|
||||
|
||||
connection_weak_ptr w(con);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user