tuple/value: prefer std::invoke over manual calls
This commit is contained in:
parent
190307acb8
commit
5c2b52b30b
@ -40,7 +40,7 @@ namespace util::tuple::value {
|
||||
using tuple_t = std::decay_t<TupleT>;
|
||||
static_assert (S < std::tuple_size_v<tuple_t>);
|
||||
|
||||
func (std::get<S> (value));
|
||||
std::invoke (func, std::get<S> (value));
|
||||
|
||||
if constexpr (S + 1 < std::tuple_size_v<tuple_t>) {
|
||||
each<FunctionT,TupleT,S+1> (std::forward<FunctionT> (func), std::forward<TupleT> (value));
|
||||
|
Loading…
Reference in New Issue
Block a user