diff options
author | user <user@localhost.localdomain> | 2019-12-15 08:16:43 -0800 |
---|---|---|
committer | user <user@localhost.localdomain> | 2019-12-15 08:16:43 -0800 |
commit | f752a0e252e217660467ebcc412ddc62495a260c (patch) | |
tree | 276f3612bc65ab4a50516ca3116a57da82bc8538 /starts/meaning-vm/level-2/baseref.hpp | |
parent | 3e65ec890f0bc9e9bec8ffd64e69ccf87ed6054e (diff) | |
download | standingwithresilience-f752a0e252e217660467ebcc412ddc62495a260c.tar.gz standingwithresilience-f752a0e252e217660467ebcc412ddc62495a260c.zip |
phone work
Diffstat (limited to 'starts/meaning-vm/level-2/baseref.hpp')
-rw-r--r-- | starts/meaning-vm/level-2/baseref.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/starts/meaning-vm/level-2/baseref.hpp b/starts/meaning-vm/level-2/baseref.hpp index c66d1a7..8fbcc91 100644 --- a/starts/meaning-vm/level-2/baseref.hpp +++ b/starts/meaning-vm/level-2/baseref.hpp @@ -20,7 +20,11 @@ struct baseref : public level1::baseref<ref> static ref & context() { return level2::context(); } template <typename... Refs> - ref operator()(Refs... args) { return level2::dohabit(self, {args.ptr()...}); } + ref operator()(ref first, Refs... rest) { return level2::dohabit(self, {first, rest...}); } + template <typename... Pairs> + ref operator()(std::initializer_list<ref> first, Pairs... rest) { return level2::dohabit(self, {first, rest...}); } + + ref operator()() { return level2::dohabit(self); } }; } |