summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-0/memorystore.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/level-0/memorystore.hpp')
-rw-r--r--starts/meaning-vm/level-0/memorystore.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/starts/meaning-vm/level-0/memorystore.hpp b/starts/meaning-vm/level-0/memorystore.hpp
index 8958ae7..fd752a0 100644
--- a/starts/meaning-vm/level-0/memorystore.hpp
+++ b/starts/meaning-vm/level-0/memorystore.hpp
@@ -6,10 +6,10 @@
namespace intellect {
namespace level0 {
-concept * alloc(concept * moved = 0);
+ref alloc(concept * moved = 0);
template <typename T>
-value<T> * valloc(T const & v) { return static_cast<value<T>*>(alloc(new value<T>(v))); }
-void dealloc(concept*);
+value<T> * valloc(T const & v) { return static_cast<value<T>*>(alloc(new value<T>(v)).ptr()); }
+void dealloc(ref);
std::size_t allocated();
}