From 3654738f56e7f2af86f4ca05aa390b6c6b140463 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 23 Oct 2022 17:29:41 -0400 Subject: [PATCH] bees: fix deprecated-copy warnings for clang-14 Signed-off-by: Zygo Blaxell --- src/bees.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bees.h b/src/bees.h index 6d7a66e..b79ecd3 100644 --- a/src/bees.h +++ b/src/bees.h @@ -336,6 +336,7 @@ public: BeesAddress(Type addr = ZERO) : m_addr(addr) {} BeesAddress(MagicValue addr) : m_addr(addr) {} BeesAddress& operator=(const BeesAddress &that) = default; + BeesAddress(const BeesAddress &that) = default; operator Type() const { return m_addr; } bool operator==(const BeesAddress &that) const; bool operator==(const MagicValue that) const { return *this == BeesAddress(that); } @@ -396,6 +397,7 @@ public: HashType e_hash; AddrType e_addr; Cell(const Cell &) = default; + Cell &operator=(const Cell &) = default; Cell(HashType hash, AddrType addr) : e_hash(hash), e_addr(addr) { } bool operator==(const Cell &e) const { return tie(e_hash, e_addr) == tie(e.e_hash, e.e_addr); } bool operator!=(const Cell &e) const { return tie(e_hash, e_addr) != tie(e.e_hash, e.e_addr); }