From 69e4c826a34eb84c36bb07338a9a292a520f5970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 5 Feb 2020 22:13:09 +0100 Subject: Fix compilation with clang --- include/erebos/storage.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/erebos/storage.h') diff --git a/include/erebos/storage.h b/include/erebos/storage.h index d23022f..5812783 100644 --- a/include/erebos/storage.h +++ b/include/erebos/storage.h @@ -33,7 +33,7 @@ public: typedef erebos::PartialRef Ref; PartialStorage(const PartialStorage &) = default; - PartialStorage & operator=(const PartialStorage &) = default; + PartialStorage & operator=(const PartialStorage &) = delete; virtual ~PartialStorage() = default; bool operator==(const PartialStorage &) const; @@ -62,7 +62,7 @@ public: Storage(const std::filesystem::path &); Storage(const Storage &) = default; - Storage & operator=(const Storage &) = default; + Storage & operator=(const Storage &) = delete; Storage deriveEphemeralStorage() const; PartialStorage derivePartialStorage() const; @@ -117,7 +117,7 @@ class PartialRef { public: PartialRef(const PartialRef &) = default; - PartialRef & operator=(const PartialRef &) = default; + PartialRef & operator=(const PartialRef &) = delete; static PartialRef create(PartialStorage, const Digest &); @@ -140,7 +140,7 @@ class Ref : public PartialRef { public: Ref(const Ref &) = default; - Ref & operator=(const Ref &) = default; + Ref & operator=(const Ref &) = delete; static std::optional create(Storage, const Digest &); -- cgit v1.2.3