From c30c37f6aa8820af57984a62adfbb208914adfbb Mon Sep 17 00:00:00 2001 From: Eduard Bagdasaryan Date: Tue, 17 Aug 2021 20:26:36 +0300 Subject: [PATCH] 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. --- src/eui/Eui48.h | 1 - 1 file changed, 1 deletion(-) 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() {} -- 2.47.3