diff --git a/mockup.cpp b/mockup.cpp index c62d312..1e3b147 100644 --- a/mockup.cpp +++ b/mockup.cpp @@ -42,12 +42,26 @@ struct Continuable } }; +// helper class +struct Continuables +{ + static Continuable<> create_empty() + { + return make_continuable([](std::function&& callback) + { + callback(); + }); + } +}; + template Continuable<> make_continuable(Args&&...) { return Continuable<>(); } + + template Continuable<> operator&& (Continuable&&, Continuable&&) {