summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-2/baseref.hpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 06:51:41 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 06:51:41 -0800
commite6f2b95fb543b535b1914bd4954e240dbd724275 (patch)
treedcd081c1098489bc5c2172e5e535abb56094e763 /starts/meaning-vm/level-2/baseref.hpp
parent8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90 (diff)
downloadstandingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.tar.gz
standingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.zip
positional argument sugar for habits
Diffstat (limited to 'starts/meaning-vm/level-2/baseref.hpp')
-rw-r--r--starts/meaning-vm/level-2/baseref.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-2/baseref.hpp b/starts/meaning-vm/level-2/baseref.hpp
index c2bc0d1..921d1d3 100644
--- a/starts/meaning-vm/level-2/baseref.hpp
+++ b/starts/meaning-vm/level-2/baseref.hpp
@@ -19,6 +19,8 @@ struct baseref : public level1::baseref<ref>
// thread-local context
static ref context() { return level2::context(); }
+ template <typename... Refs>
+ ref operator()(Refs... args) { return level2::dohabit(self, {args.ptr()...}); }
};
}