From 7d403431e354c4a24d7dfdbef3a39ab7297ae7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 6 Jan 2020 21:22:07 +0100 Subject: Deep copy of object to different storage --- include/erebos/storage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/erebos/storage.h b/include/erebos/storage.h index 51fa3a4..d855460 100644 --- a/include/erebos/storage.h +++ b/include/erebos/storage.h @@ -74,6 +74,11 @@ public: Ref storeObject(const Record &) const; Ref storeObject(const Blob &) const; + std::variant> copy(const PartialRef &) const; + std::variant> copy(const PartialObject &) const; + Ref copy(const Ref &) const; + Ref copy(const Object &) const; + template Stored store(const T &) const; void storeKey(Ref pubref, const std::vector &) const; @@ -89,7 +94,7 @@ public: static constexpr size_t size = 32; Digest(const Digest &) = default; - Digest & operator=(const Digest &) = delete; + Digest & operator=(const Digest &) = default; explicit Digest(std::array value): value(value) {} explicit Digest(const std::string &); -- cgit v1.2.3