summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-1
diff options
context:
space:
mode:
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;