diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 3b6ba3522..ba584f61d 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -186,6 +186,7 @@ class basic_registry { template const pool_handler & assure() const { + static_assert(std::is_same_v>); static std::size_t index{pools.size()}; if(const auto length = pools.size(); !(index < length) || pools[index].type_id != type_info::id()) {