From cae16e6c034808199f12a37ec0bdb4822c988dca Mon Sep 17 00:00:00 2001 From: olpc user Date: Tue, 26 Nov 2019 12:25:58 -0800 Subject: switch data to use std::any and merge value struct with concept --- starts/meaning-vm/level-0/baseref.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'starts/meaning-vm/level-0/baseref.hpp') diff --git a/starts/meaning-vm/level-0/baseref.hpp b/starts/meaning-vm/level-0/baseref.hpp index 849e205..205b422 100644 --- a/starts/meaning-vm/level-0/baseref.hpp +++ b/starts/meaning-vm/level-0/baseref.hpp @@ -49,12 +49,12 @@ public: } template - T& vget(ref const & type) const { return p->vget(type.p)->data; } + T& vget(ref const & type) const { return p->vget(type.p); } template - void vset(ref const & type, T const & v) { p->set(type.p, valloc(v)); } + void vset(ref const & type, T const & v) { p->set(type.p, alloc(v)); } template - T& val() { return p->val()->data; } + T& val() { return p->val(); } operator concept*() const { return p; } concept*& ptr() { return p; } -- cgit v1.2.3