mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
some corrections
This commit is contained in:
parent
959bc87d00
commit
cada3d628a
@ -45,7 +45,7 @@ namespace detail
|
||||
static auto create()
|
||||
-> Callback<Args...>
|
||||
{
|
||||
return [](Args...)
|
||||
return [](Args&&...)
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
@ -212,7 +212,7 @@ namespace fu
|
||||
|
||||
namespace detail
|
||||
{
|
||||
/// Implementation of invoke_with_tuple
|
||||
/// Implementation of invoke_from_tuple
|
||||
template<typename Sequence>
|
||||
struct invoker;
|
||||
|
||||
@ -230,7 +230,7 @@ namespace fu
|
||||
|
||||
/// Invokes a function type with the given tuple arguments.
|
||||
template<typename _FTy, typename _TTy>
|
||||
inline auto invoke_with_tuple(_FTy&& functional, _TTy&& tuple)
|
||||
inline auto invoke_from_tuple(_FTy&& functional, _TTy&& tuple)
|
||||
-> return_type_of_t<typename std::decay<_FTy>::type>
|
||||
{
|
||||
return detail::invoker<
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user