From f6153f17ad66032ddb9631028408be81c5c50165 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 9 Mar 2022 10:41:17 +0100 Subject: [PATCH] storage: return a meaningful msg when the type is not movable --- src/entt/entity/storage.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 1923d9a8d..238a41a20 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -232,6 +232,8 @@ template */ template class basic_storage: public basic_sparse_set::template rebind_alloc> { + static_assert(std::is_move_constructible_v && std::is_move_assignable_v, "The type must be at least move constructible/assignable"); + using alloc_traits = std::allocator_traits; static_assert(std::is_same_v); using underlying_type = basic_sparse_set>;