tuple/value: don't use forwarding constructor for map

This commit is contained in:
Danny Robson 2020-09-07 16:44:04 +10:00
parent 91137f4f36
commit aa1d35cdf6

View File

@ -144,7 +144,7 @@ namespace cruft::tuple::value {
auto
map (std::index_sequence<Indices...>, FuncT &&func, ArgT &&arg)
{
return std::forward_as_tuple (
return std::tuple (
std::invoke (func, std::get<Indices> (arg))...
);
}