From 2fbeeafbb8773c19ef45ea233a6747154ce66d35 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 28 Feb 2022 23:07:29 +0100 Subject: [PATCH] dense_set: constrain the allocator type --- src/entt/container/dense_set.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entt/container/dense_set.hpp b/src/entt/container/dense_set.hpp index 836fcf049..9383f1d19 100644 --- a/src/entt/container/dense_set.hpp +++ b/src/entt/container/dense_set.hpp @@ -231,6 +231,7 @@ class dense_set { using node_type = std::pair; using alloc_traits = std::allocator_traits; + static_assert(std::is_same_v); using sparse_container_type = std::vector>; using packed_container_type = std::vector>;