aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Proxy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/Proxy.hpp')
-rw-r--r--src/crepe/Proxy.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/crepe/Proxy.hpp b/src/crepe/Proxy.hpp
new file mode 100644
index 0000000..7f23716
--- /dev/null
+++ b/src/crepe/Proxy.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "Proxy.h"
+
+namespace crepe {
+
+template <typename T>
+Proxy<T> & Proxy<T>::operator = (const T & val) {
+ this->val->set(val);
+ return *this;
+}
+
+template <typename T>
+Proxy<T>::operator const T & () const {
+ return this->val->get();
+}
+
+}
+