tuple/value: don't use forwarding constructor for map
This commit is contained in:
parent
91137f4f36
commit
aa1d35cdf6
@ -144,7 +144,7 @@ namespace cruft::tuple::value {
|
|||||||
auto
|
auto
|
||||||
map (std::index_sequence<Indices...>, FuncT &&func, ArgT &&arg)
|
map (std::index_sequence<Indices...>, FuncT &&func, ArgT &&arg)
|
||||||
{
|
{
|
||||||
return std::forward_as_tuple (
|
return std::tuple (
|
||||||
std::invoke (func, std::get<Indices> (arg))...
|
std::invoke (func, std::get<Indices> (arg))...
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user