diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2020-02-05 22:13:09 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2020-02-05 22:13:09 +0100 |
commit | 69e4c826a34eb84c36bb07338a9a292a520f5970 (patch) | |
tree | 99d00a446b36fcdaf27dc9f1ddb5fc7e9edf5e3c /include/erebos | |
parent | 495d2cb6b47b309070b31e0ef83fa5731a150a6d (diff) |
Fix compilation with clang
Diffstat (limited to 'include/erebos')
-rw-r--r-- | include/erebos/identity.h | 6 | ||||
-rw-r--r-- | include/erebos/storage.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/erebos/identity.h b/include/erebos/identity.h index 4fdddab..9ed170a 100644 --- a/include/erebos/identity.h +++ b/include/erebos/identity.h @@ -29,7 +29,7 @@ public: friend class Identity; struct Priv; const std::shared_ptr<Priv> p; - Builder(Priv * p): p(p) {} + Builder(Priv * p); }; static Builder create(const Storage &); @@ -38,8 +38,8 @@ public: private: struct Priv; const std::shared_ptr<const Priv> p; - Identity(const Priv * p): p(p) {} - Identity(std::shared_ptr<const Priv> && p): p(std::move(p)) {} + Identity(const Priv * p); + Identity(std::shared_ptr<const Priv> && p); }; } 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<Ref> create(Storage, const Digest &); |