table: fixed table_iterator operator[](value)

This commit is contained in:
Michele Caini
2024-04-24 18:22:48 +02:00
parent c0e68b96f7
commit e44b1e9024

View File

@@ -78,7 +78,7 @@ struct table_iterator {
}
[[nodiscard]] constexpr reference operator[](const difference_type value) const noexcept {
return std::forward_as_tuple(*std::get<It>(it)...);
return std::forward_as_tuple(std::get<It>(it)[value]...);
}
[[nodiscard]] constexpr pointer operator->() const noexcept {