From d563500c915de2f0a652513af03f101c99715db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 9 May 2021 15:20:30 +0200 Subject: SharedType: type trait instead of member functions and typedef --- include/erebos/identity.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/erebos/identity.h') diff --git a/include/erebos/identity.h b/include/erebos/identity.h index f7b17b8..d0b60d5 100644 --- a/include/erebos/identity.h +++ b/include/erebos/identity.h @@ -1,9 +1,12 @@ #pragma once +#include #include namespace erebos { +using std::optional; + class Identity { public: @@ -14,6 +17,7 @@ public: static std::optional load(const Ref &); static std::optional load(const std::vector &); + std::vector store() const; std::vector store(const Storage & st) const; std::optional name() const; @@ -47,8 +51,6 @@ public: static Builder create(const Storage &); Builder modify() const; - static const UUID sharedTypeId; - private: struct Priv; std::shared_ptr p; @@ -56,4 +58,6 @@ private: Identity(std::shared_ptr && p); }; +DECLARE_SHARED_TYPE(optional) + } -- cgit v1.2.3