sparse_set: minor changes

This commit is contained in:
Michele Caini
2024-05-28 09:31:00 +02:00
parent 7db890ba15
commit d03c0d0b1a

View File

@@ -74,7 +74,7 @@ struct sparse_set_iterator final {
}
[[nodiscard]] constexpr reference operator[](const difference_type value) const noexcept {
return packed->data()[index() - value];
return (*packed)[index() - value];
}
[[nodiscard]] constexpr pointer operator->() const noexcept {