From 584ca7f9b6fca6da54608d3b28274273b2c9a4b8 Mon Sep 17 00:00:00 2001 From: olpc user Date: Mon, 9 Dec 2019 03:13:14 -0800 Subject: make level-2 have refs --- starts/meaning-vm/level-2/baseref.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 starts/meaning-vm/level-2/baseref.hpp (limited to 'starts/meaning-vm/level-2/baseref.hpp') diff --git a/starts/meaning-vm/level-2/baseref.hpp b/starts/meaning-vm/level-2/baseref.hpp new file mode 100644 index 0000000..c2bc0d1 --- /dev/null +++ b/starts/meaning-vm/level-2/baseref.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include "common.hpp" + +#include "funcs.hpp" + +#include "../level-1/common.hpp" + +#include + +namespace intellect { +namespace level2 { + +template +struct baseref : public level1::baseref +{ + using level1::template baseref::baseref; + + // thread-local context + static ref context() { return level2::context(); } + +}; + +} +} -- cgit v1.2.3