summaryrefslogtreecommitdiff
path: root/src/identity.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2020-04-16 21:42:45 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2020-04-16 21:42:45 +0200
commit6cf5244bc514042fe419fffe1cd26a7f5e3c778f (patch)
tree4a72abf80980c3d10656bd82606a69329867d057 /src/identity.h
parenta76a9ad65fa549d2c1650bb5a7d9a657186edc43 (diff)
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.
Diffstat (limited to 'src/identity.h')
-rw-r--r--src/identity.h2
1 files changed, 1 insertions, 1 deletions
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<IdentityData> load(const Ref &);
+ static IdentityData load(const Ref &);
Ref store(const Storage & st) const;
const vector<Stored<Signed<IdentityData>>> prev;