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-1/sugar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starts/meaning-vm/level-1') diff --git a/starts/meaning-vm/level-1/sugar.hpp b/starts/meaning-vm/level-1/sugar.hpp index 240f768..dd62476 100644 --- a/starts/meaning-vm/level-1/sugar.hpp +++ b/starts/meaning-vm/level-1/sugar.hpp @@ -22,7 +22,7 @@ namespace internal { void init_ref_names(std::string names, T &... refrefs) { std::stringstream ss(names); - ref* refptrs[] = {&refrefs...}; + ref* refptrs[] = {&static_cast(refrefs)...}; for (std::size_t i = 0; i < sizeof...(refrefs); ++ i) { std::string name; ss >> name; -- cgit v1.2.3