diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-08 15:58:33 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-09 09:39:34 +0000 |
commit | f47488c7348c599d823d4e20966c0f3ba9c8e29d (patch) | |
tree | 4f81e74b1974161d7dd2124e7ec226e52f1a52b2 /contrib | |
parent | p2p: fix GCC 9.1 crash (diff) | |
download | monero-f47488c7348c599d823d4e20966c0f3ba9c8e29d.tar.xz |
Fix GCC 9.1 build warnings
GCC wants operator= aand copy ctor to be both defined, or neither
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/net_utils_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/epee/include/net/net_utils_base.h b/contrib/epee/include/net/net_utils_base.h index 50536f63b..83e6b5ab8 100644 --- a/contrib/epee/include/net/net_utils_base.h +++ b/contrib/epee/include/net/net_utils_base.h @@ -294,6 +294,11 @@ namespace net_utils m_max_speed_up(0) {} + connection_context_base(const connection_context_base& a): connection_context_base() + { + set_details(a.m_connection_id, a.m_remote_address, a.m_is_income, a.m_ssl); + } + connection_context_base& operator=(const connection_context_base& a) { set_details(a.m_connection_id, a.m_remote_address, a.m_is_income, a.m_ssl); |