aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-08 15:58:33 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-09 09:39:34 +0000
commitf47488c7348c599d823d4e20966c0f3ba9c8e29d (patch)
tree4f81e74b1974161d7dd2124e7ec226e52f1a52b2 /contrib/epee/include
parentp2p: fix GCC 9.1 crash (diff)
downloadmonero-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/epee/include')
-rw-r--r--contrib/epee/include/net/net_utils_base.h5
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);