sparse_set: drop an extra typename that msvc happily accepted

This commit is contained in:
Michele Caini
2024-03-08 12:43:38 +01:00
parent 94f53958a0
commit fefcbb214a

View File

@@ -162,7 +162,7 @@ class basic_sparse_set {
using packed_container_type = std::vector<Entity, Allocator>;
using underlying_type = typename entt_traits<Entity>::entity_type;
static constexpr auto max_size = static_cast<std::size_t>(typename entt_traits<Entity>::to_entity(null));
static constexpr auto max_size = static_cast<std::size_t>(entt_traits<Entity>::to_entity(null));
[[nodiscard]] auto policy_to_head() const noexcept {
return static_cast<size_type>(max_size * (mode != deletion_policy::swap_only));