enable default route through

This commit is contained in:
Denis Blank 2015-06-22 15:05:52 +02:00 committed by Naios
parent 2388471ca7
commit 4aff0684fb
2 changed files with 11 additions and 4 deletions

View File

@ -382,8 +382,6 @@ namespace detail
>::wrap(std::forward<_CTy>(functional));
}
/*
/// Route continuable returning functionals through.
template <typename _CTy>
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<typename _CTy>

View File

@ -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<int, int>&& callback)
{
callback(1, 2);
});
});
std::cout << "ok" << std::endl;
return 0;
}