aboutsummaryrefslogtreecommitdiff
path: root/include/utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils.hpp')
-rw-r--r--include/utils.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils.hpp b/include/utils.hpp
new file mode 100644
index 0000000..65667f7
--- /dev/null
+++ b/include/utils.hpp
@@ -0,0 +1,5 @@
+
+#define DELEGATE(OBJ, METHOD, METHOD_AS) \
+ template <typename... Args> decltype(auto) METHOD_AS(Args &&...args) { \
+ return OBJ->METHOD(std::forward<Args>(args)...); \
+ }