From 415a31ce233682f14ff33b6eece05ff7243144a6 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 14 May 2021 10:16:13 +0200 Subject: [PATCH] storage: forward allocator to base class --- src/entt/entity/storage.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 223754033..c0385a7d5 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -65,6 +65,8 @@ class basic_storage: public basic_sparse_set::template rebind_alloc; + static_assert(alloc_traits::propagate_on_container_move_assignment::value); static_assert(bucket_alloc_traits::propagate_on_container_move_assignment::value); @@ -282,7 +284,8 @@ public: * @param alloc Allocator to use (possibly default-constructed). */ explicit basic_storage(const allocator_type &alloc = {}) - : allocator{alloc}, + : basic_sparse_set{alloc}, + allocator{alloc}, bucket_allocator{alloc}, packed{}, bucket{},