Add operator= for tuple

This commit is contained in:
sha512sum 2024-03-04 18:51:33 +00:00
parent 616819edbe
commit a4f41f84b5

View file

@ -66,6 +66,9 @@ struct Tuple : public impl::TupleHelper<std::index_sequence_for<Ts...>, Ts...> {
inline constexpr Tuple(const Tuple&) = default; inline constexpr Tuple(const Tuple&) = default;
inline constexpr Tuple(Tuple&&) = default; inline constexpr Tuple(Tuple&&) = default;
inline constexpr Tuple(Tuple&) = default; inline constexpr Tuple(Tuple&) = default;
inline constexpr Tuple& operator=(const Tuple&) = default;
inline constexpr Tuple& operator=(Tuple&&) = default;
inline constexpr Tuple& operator=(Tuple&) = default;
inline constexpr Tuple() : inline constexpr Tuple() :
impl::TupleHelper<std::index_sequence_for<Ts...>, Ts...>() {}; impl::TupleHelper<std::index_sequence_for<Ts...>, Ts...>() {};
template <typename... TTs> template <typename... TTs>