From 6cf5244bc514042fe419fffe1cd26a7f5e3c778f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 16 Apr 2020 21:42:45 +0200 Subject: Remove optional from load result Makes loading of data well-defined for arbitrary object contents. Introduce zero reference and object to represent missing or mismatched parts. --- src/identity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/identity.h') diff --git a/src/identity.h b/src/identity.h index 92ac34f..1dfc193 100644 --- a/src/identity.h +++ b/src/identity.h @@ -13,7 +13,7 @@ namespace erebos { class IdentityData { public: - static optional load(const Ref &); + static IdentityData load(const Ref &); Ref store(const Storage & st) const; const vector>> prev; -- cgit v1.2.3