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/memorystore.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'starts/meaning-vm/level-0/memorystore.hpp') diff --git a/starts/meaning-vm/level-0/memorystore.hpp b/starts/meaning-vm/level-0/memorystore.hpp index fd752a0..7843513 100644 --- a/starts/meaning-vm/level-0/memorystore.hpp +++ b/starts/meaning-vm/level-0/memorystore.hpp @@ -1,14 +1,13 @@ #pragma once #include "common.hpp" -#include "value.hpp" + +#include namespace intellect { namespace level0 { -ref alloc(concept * moved = 0); -template -value * valloc(T const & v) { return static_cast*>(alloc(new value(v)).ptr()); } +ref alloc(std::any data = {}); void dealloc(ref); std::size_t allocated(); -- cgit v1.2.3