From e4a681ac1efb2ca5c0d274b3110d903dc1c78c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Mon, 15 Jan 2024 22:50:34 +0100 Subject: [PATCH] delete the copy-constructor for cache as copying it is undesired behaviour --- offloading-cacher/cache.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/offloading-cacher/cache.hpp b/offloading-cacher/cache.hpp index 6a717ff..78d16b0 100644 --- a/offloading-cacher/cache.hpp +++ b/offloading-cacher/cache.hpp @@ -237,6 +237,8 @@ namespace dsacache { std::unique_ptr GetFromCache(uint8_t* src, const size_t size, const int dst_node); public: + Cache(const Cache& other) = delete; + // initializes the cache with the two policy functions // only after this is it safe to use in a threaded environment void Init(CachePolicy* cache_policy_function, CopyPolicy* copy_policy_function);