Fix MakeTuple for std::array with 0 elements

This commit is contained in:
sha512sum 2024-06-11 08:35:29 +00:00
parent fbb31cf1ec
commit 9eede7544a

View file

@ -107,6 +107,9 @@ struct TupleMaker<std::array<T, N>> {
requires (std::same_as<std::remove_cvref_t<Arg>, std::remove_cvref_t<Args>> && ...) { requires (std::same_as<std::remove_cvref_t<Arg>, std::remove_cvref_t<Args>> && ...) {
return std::array{std::forward<Arg>(arg), std::forward<Args>(args)...}; return std::array{std::forward<Arg>(arg), std::forward<Args>(args)...};
}; };
static constexpr auto Make() -> std::array<T, 0> {
return {};
};
}; };
template <typename T> template <typename T>