diff --git a/NextGen.cpp b/NextGen.cpp index 2efb629..2d908dd 100644 --- a/NextGen.cpp +++ b/NextGen.cpp @@ -344,16 +344,18 @@ auto thenImpl(Data data, Callback&& callback) { } template -auto postImpl(Data&& data ,NewDispatcher&& newDispatcher) { - /*->ContinuableBase>> { - return{ std::move(continuation), std::move(ownership), - std::forward(newDispatcher) }; */ - - return 0; +auto postImpl(Data data ,NewDispatcher&& newDispatcher) { + using Decoration = DefaultDecoration> + >>; + return ContinuableBase(Decoration({ + std::move(data.ownership), + std::move(data.continuation), + std::forward(newDispatcher) + })); } - template class ContinuableBase { template @@ -413,7 +415,7 @@ int main(int, char**) { int res = 0; makeTestContinuation() - // .post(dispatcher) + .post(dispatcher) .then([](std::string /*str*/) { return std::make_tuple(47, 46, 45); })