mirror of
https://github.com/Naios/continuable.git
synced 2026-02-07 18:26:40 +08:00
enable default route through
This commit is contained in:
parent
2388471ca7
commit
4aff0684fb
@ -382,8 +382,6 @@ namespace detail
|
|||||||
>::wrap(std::forward<_CTy>(functional));
|
>::wrap(std::forward<_CTy>(functional));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
/// Route continuable returning functionals through.
|
/// Route continuable returning functionals through.
|
||||||
template <typename _CTy>
|
template <typename _CTy>
|
||||||
static auto remove_void_trait(_CTy&& functional)
|
static auto remove_void_trait(_CTy&& functional)
|
||||||
@ -396,7 +394,7 @@ namespace detail
|
|||||||
_CTy>::type
|
_CTy>::type
|
||||||
{
|
{
|
||||||
return std::forward<_CTy>(functional);
|
return std::forward<_CTy>(functional);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/// Wrap continuables into the continuable returning functional type.
|
/// Wrap continuables into the continuable returning functional type.
|
||||||
template<typename _CTy>
|
template<typename _CTy>
|
||||||
|
|||||||
11
test.cpp
11
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<int, int>&& callback)
|
||||||
|
{
|
||||||
|
|
||||||
|
callback(1, 2);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
std::cout << "ok" << std::endl;
|
std::cout << "ok" << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user