aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/net_utils_base.h
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:18 +0000
commit35c20c4332b9483f0e4c60f244e44508e5fef69b (patch)
treee3c2047c2c231c33cf9f34ceeed04c226f7dea79 /contrib/epee/include/net/net_utils_base.h
parentp2p: fix GCC 9.1 crash (diff)
downloadmonero-35c20c4332b9483f0e4c60f244e44508e5fef69b.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/net/net_utils_base.h')
-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);