Fix GCC 9.1 build warnings

GCC wants operator= aand copy ctor to be both defined, or neither
This commit is contained in:
moneromooo-monero 2019-06-08 15:58:33 +00:00
parent 2cbe75661c
commit 35c20c4332
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 20 additions and 0 deletions

View file

@ -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);