summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-0/concept.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/level-0/concept.hpp')
-rw-r--r--starts/meaning-vm/level-0/concept.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-0/concept.hpp b/starts/meaning-vm/level-0/concept.hpp
index d57ccfc..d42d36b 100644
--- a/starts/meaning-vm/level-0/concept.hpp
+++ b/starts/meaning-vm/level-0/concept.hpp
@@ -38,6 +38,9 @@ struct concept
template <typename T>
T & val() { return std::any_cast<T&>(data); }
+
+ template <typename T>
+ void val(T const & v) { data = v; }
};
}