mirror of
https://github.com/Naios/continuable.git
synced 2026-02-08 18:56:40 +08:00
fix unix build
This commit is contained in:
parent
2e2d7b309e
commit
a16ca02619
@ -340,6 +340,7 @@ namespace detail
|
|||||||
template <typename... _ATy>
|
template <typename... _ATy>
|
||||||
struct functional_traits
|
struct functional_traits
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
/// Wrap void returning functionals to returns an empty continuable.
|
/// Wrap void returning functionals to returns an empty continuable.
|
||||||
template <typename _CTy>
|
template <typename _CTy>
|
||||||
static auto remove_void_trait(_CTy&& functional)
|
static auto remove_void_trait(_CTy&& functional)
|
||||||
@ -349,30 +350,30 @@ namespace detail
|
|||||||
typename std::decay<_CTy>::type
|
typename std::decay<_CTy>::type
|
||||||
>
|
>
|
||||||
>::value,
|
>::value,
|
||||||
/*decltype(
|
decltype(
|
||||||
detail::void_wrap_trait<
|
detail::void_wrap_trait<
|
||||||
fu::return_type_of_t<
|
fu::return_type_of_t<
|
||||||
typename std::decay<_CTy>::type
|
typename std::decay<_CTy>::type
|
||||||
>
|
>
|
||||||
>::wrap(std::declval<_CTy>())
|
>::wrap(std::declval<_CTy>())
|
||||||
)
|
)
|
||||||
*/
|
|
||||||
decltype(
|
decltype(
|
||||||
detail::functional_corrector<_CTy>::correct(std::declval<_CTy>())
|
detail::functional_corrector<_CTy>::correct(std::declval<_CTy>())
|
||||||
)
|
)
|
||||||
// std::function<Continuable<>()>
|
// std::function<Continuable<>()>
|
||||||
>::type
|
>::type
|
||||||
{
|
{
|
||||||
/*return detail::void_wrap_trait<
|
return detail::void_wrap_trait<
|
||||||
fu::return_type_of_t<
|
fu::return_type_of_t<
|
||||||
typename std::decay<_CTy>::type
|
typename std::decay<_CTy>::type
|
||||||
>
|
>
|
||||||
>::wrap(std::forward<_CTy>(functional));*/
|
>::wrap(std::forward<_CTy>(functional));
|
||||||
return detail::functional_corrector<_CTy>::correct(std::forward<_CTy>(functional));
|
return detail::functional_corrector<_CTy>::correct(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)
|
||||||
-> typename std::enable_if<
|
-> typename std::enable_if<
|
||||||
!std::is_void<
|
!std::is_void<
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user