From cd532965e87b44e613a2ac025c1fb6d85ccdf34e Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 24 Aug 2021 21:06:47 +0200 Subject: [PATCH] Code safety: BlockCache isn't supposed to be copied/moved --- src/block_cache.cpp | 2 +- src/block_cache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block_cache.cpp b/src/block_cache.cpp index 51a6a87..58ae89f 100644 --- a/src/block_cache.cpp +++ b/src/block_cache.cpp @@ -29,7 +29,7 @@ static constexpr char cache_name[] = "p2pool.cache"; namespace p2pool { -struct BlockCache::Impl +struct BlockCache::Impl : public nocopy_nomove { #if defined(__linux__) || defined(__unix__) || defined(_POSIX_VERSION) diff --git a/src/block_cache.h b/src/block_cache.h index c5994e9..d9fd27b 100644 --- a/src/block_cache.h +++ b/src/block_cache.h @@ -23,7 +23,7 @@ struct PoolBlock; class SideChain; class P2PServer; -class BlockCache +class BlockCache : public nocopy_nomove { public: BlockCache();