diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-26 15:58:39 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-26 15:58:39 +0200 |
commit | e0b1ddae296037376948a4c6f200d89e6d1ba81e (patch) | |
tree | f70e5a9b73e0b10e5c9fe263e146e9884474ac0f /src/crepe/Proxy.h | |
parent | 2d67cf09b80297d13f642afd7db13dba53ca2b9b (diff) |
WIP save manager
Diffstat (limited to 'src/crepe/Proxy.h')
-rw-r--r-- | src/crepe/Proxy.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/crepe/Proxy.h b/src/crepe/Proxy.h new file mode 100644 index 0000000..97b8afa --- /dev/null +++ b/src/crepe/Proxy.h @@ -0,0 +1,23 @@ +#pragma once + +#include <memory> + +#include "ProxyHandler.h" + +namespace crepe { + +template <typename T> +class Proxy { +public: + Proxy & operator = (const T &); + operator const T & () const; + +public: + Proxy(std::unique_ptr<ProxyHandler<T>> handler) : val(std::move(handler)) {} +private: + std::unique_ptr<ProxyHandler<T>> val = nullptr; +}; + +} + +#include "Proxy.hpp" |