diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 03:13:14 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 03:13:14 -0800 |
commit | 584ca7f9b6fca6da54608d3b28274273b2c9a4b8 (patch) | |
tree | d553b549cf246ddb24c93f9a95467bf9e019c052 /starts/meaning-vm/level-2/baseref.hpp | |
parent | 8d238e65a88502b897f1944b7844afffdbc0d761 (diff) | |
download | standingwithresilience-584ca7f9b6fca6da54608d3b28274273b2c9a4b8.tar.gz standingwithresilience-584ca7f9b6fca6da54608d3b28274273b2c9a4b8.zip |
make level-2 have refs
Diffstat (limited to 'starts/meaning-vm/level-2/baseref.hpp')
-rw-r--r-- | starts/meaning-vm/level-2/baseref.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
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 <functional> + +namespace intellect { +namespace level2 { + +template <typename ref> +struct baseref : public level1::baseref<ref> +{ + using level1::template baseref<ref>::baseref; + + // thread-local context + static ref context() { return level2::context(); } + +}; + +} +} |