Update PackConstexprWrapper function
This commit is contained in:
parent
024dbaf525
commit
fbb31cf1ec
1 changed files with 2 additions and 2 deletions
|
@ -347,10 +347,10 @@ inline constexpr auto Map(F&& f, TypeList<R> result = {}) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <auto Tuple>
|
template <auto Tuple, typename To = decltype(Tuple)>
|
||||||
consteval auto PackConstexprWrapper() {
|
consteval auto PackConstexprWrapper() {
|
||||||
return [&]<std::size_t... Is>(std::index_sequence<Is...>) {
|
return [&]<std::size_t... Is>(std::index_sequence<Is...>) {
|
||||||
return MakeTuple<decltype(Tuple)>(kWrapper<Get<Is>(Tuple)>...);
|
return MakeTuple<To>(kWrapper<Get<Is>(Tuple)>...);
|
||||||
}(std::make_index_sequence<kTupleSize<decltype(Tuple)>>());
|
}(std::make_index_sequence<kTupleSize<decltype(Tuple)>>());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue