Skip to content

Commit

Permalink
sparse set: I don't even read my own comments sometimes :)
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 10, 2024
1 parent fe5797e commit 73ff634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/entity/sparse_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class basic_sparse_set {
static constexpr auto max_size = static_cast<std::size_t>(traits_type::to_entity(null));

// it could be auto but gcc complains and emits a warning due to a false positive
[[nodiscard]] auto policy_to_head() const noexcept {
[[nodiscard]] std::size_t policy_to_head() const noexcept {
return static_cast<size_type>(max_size * static_cast<decltype(max_size)>(mode != deletion_policy::swap_only));
}

Expand Down

0 comments on commit 73ff634

Please sign in to comment.