summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-1
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 03:13:14 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 03:13:14 -0800
commit584ca7f9b6fca6da54608d3b28274273b2c9a4b8 (patch)
treed553b549cf246ddb24c93f9a95467bf9e019c052 /starts/meaning-vm/level-1
parent8d238e65a88502b897f1944b7844afffdbc0d761 (diff)
downloadstandingwithresilience-584ca7f9b6fca6da54608d3b28274273b2c9a4b8.tar.gz
standingwithresilience-584ca7f9b6fca6da54608d3b28274273b2c9a4b8.zip
make level-2 have refs
Diffstat (limited to 'starts/meaning-vm/level-1')
-rw-r--r--starts/meaning-vm/level-1/sugar.hpp2
1 files changed, 1 insertions, 1 deletions
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<ref&>(refrefs)...};
for (std::size_t i = 0; i < sizeof...(refrefs); ++ i) {
std::string name;
ss >> name;