From: Eduard Bagdasaryan Date: Tue, 17 Aug 2021 17:26:36 +0000 (+0300) Subject: Removed an unnecessary explicit copy constructor X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30c37f;p=thirdparty%2Fsquid.git Removed an unnecessary explicit copy constructor since the default-generated Eui64 constructor performs the required member-wise copy itself. This should fix a compiler error with the [-Werror=deprecated-copy] compiler option. --- diff --git a/src/eui/Eui48.h b/src/eui/Eui48.h index e0be32d34f..b0df46f30f 100644 --- a/src/eui/Eui48.h +++ b/src/eui/Eui48.h @@ -29,7 +29,6 @@ class Eui48 public: Eui48() { clear(); } - Eui48(const Eui48 &t) { memcpy(this, &t, sizeof(Eui48)); } bool operator== (const Eui48 &t) const { return memcmp(eui, t.eui, SZ_EUI48_BUF) == 0; } bool operator< (const Eui48 &t) const { return memcmp(eui, t.eui, SZ_EUI48_BUF) < 0; } ~Eui48() {}