From 4aff0684fbcde97eea32a548d5230e2c44619940 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Mon, 22 Jun 2015 15:05:52 +0200 Subject: [PATCH] enable default route through --- include/Continuable.h | 4 +--- test.cpp | 11 ++++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/include/Continuable.h b/include/Continuable.h index 3b7ec76..3b50b01 100644 --- a/include/Continuable.h +++ b/include/Continuable.h @@ -382,8 +382,6 @@ namespace detail >::wrap(std::forward<_CTy>(functional)); } - /* - /// Route continuable returning functionals through. template static auto remove_void_trait(_CTy&& functional) @@ -396,7 +394,7 @@ namespace detail _CTy>::type { return std::forward<_CTy>(functional); - }*/ + } /// Wrap continuables into the continuable returning functional type. template diff --git a/test.cpp b/test.cpp index 1aaaa55..1239f57 100644 --- a/test.cpp +++ b/test.cpp @@ -236,10 +236,19 @@ int main(int /*argc*/, char** /*argv*/) }); */ - auto test = detail::functional_traits<>::remove_void_trait([] + auto test1 = detail::functional_traits<>::remove_void_trait([] { }); + auto test2 = detail::functional_traits<>::remove_void_trait([] + { + return make_continuable([](Callback&& callback) + { + + callback(1, 2); + }); + }); + std::cout << "ok" << std::endl; return 0; }