Browse Source

sparse_set: drop an extra typename that msvc happily accepted

Michele Caini 2 years ago
parent
commit
fefcbb214a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/sparse_set.hpp

+ 1 - 1
src/entt/entity/sparse_set.hpp

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