summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-0/value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/level-0/value.hpp')
-rw-r--r--starts/meaning-vm/level-0/value.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-0/value.hpp b/starts/meaning-vm/level-0/value.hpp
new file mode 100644
index 0000000..ff704bf
--- /dev/null
+++ b/starts/meaning-vm/level-0/value.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "common.hpp"
+
+#include "concept.hpp"
+
+namespace intellect {
+namespace level0 {
+
+template <typename T>
+struct value : public concept
+{
+ value(T const & val) : data(val) { }
+
+ value(value<T> const & val) = default;
+
+ operator T&() { return data; }
+ operator T const &() const { return data; }
+
+ T data;
+};
+
+
+}
+}