From 9a14918abec434d8463e07635daef380ad630649 Mon Sep 17 00:00:00 2001 From: olpc user Date: Sun, 24 Nov 2019 13:22:55 -0800 Subject: breaking into levels --- starts/meaning-vm/level-0/value.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 starts/meaning-vm/level-0/value.hpp (limited to 'starts/meaning-vm/level-0/value.hpp') 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 +struct value : public concept +{ + value(T const & val) : data(val) { } + + value(value const & val) = default; + + operator T&() { return data; } + operator T const &() const { return data; } + + T data; +}; + + +} +} -- cgit v1.2.3