aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-07-18 01:10:40 +0200
committerJon Atack <jon@atack.com>2021-07-20 13:58:14 +0200
commit7b3a20b2602f902c344a615f23f8f0280b6f6bcc (patch)
treef1f877e370a4ee9f74cfd99a3c93041645959968
parentf8b20fd35b0eb42d28afb302a070e5d9bc21a99f (diff)
downloadbitcoin-7b3a20b2602f902c344a615f23f8f0280b6f6bcc.tar.xz
mempool: apply rule of 5 to epochguard.h, fix compiler warnings
-rw-r--r--src/util/epochguard.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/epochguard.h b/src/util/epochguard.h
index 1570ec4eb4..3e63e093da 100644
--- a/src/util/epochguard.h
+++ b/src/util/epochguard.h
@@ -40,6 +40,9 @@ public:
Epoch() = default;
Epoch(const Epoch&) = delete;
Epoch& operator=(const Epoch&) = delete;
+ Epoch(Epoch&&) = delete;
+ Epoch& operator=(Epoch&&) = delete;
+ ~Epoch() = default;
bool guarded() const { return m_guarded; }
@@ -51,6 +54,13 @@ public:
// only allow modification via Epoch member functions
friend class Epoch;
Marker& operator=(const Marker&) = delete;
+
+ public:
+ Marker() = default;
+ Marker(const Marker&) = default;
+ Marker(Marker&&) = delete;
+ Marker& operator=(Marker&&) = delete;
+ ~Marker() = default;
};
class SCOPED_LOCKABLE Guard