diff options
Diffstat (limited to 'starts/meaning-vm/level-0/baseref.hpp')
-rw-r--r-- | starts/meaning-vm/level-0/baseref.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-0/baseref.hpp b/starts/meaning-vm/level-0/baseref.hpp index bdfd065..b68de24 100644 --- a/starts/meaning-vm/level-0/baseref.hpp +++ b/starts/meaning-vm/level-0/baseref.hpp @@ -2,6 +2,7 @@ #include "common.hpp" #include "errors.hpp" +#include "memorystore.hpp" #include <map> #include <vector> @@ -37,6 +38,8 @@ public: template <typename T> T& vget(ref const & type) const { return p->vget<T>(type.p)->data; } + template <typename T> + void vset(ref const & type, T const & v) { p->set(type.p, valloc<T>(v)); } template <typename T> T& val() { return p->val<T>()->data; } |