From 97befad59a45f65b25bf6ed72f76341d2b2d1564 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 2 Aug 2024 17:09:24 +0200 Subject: [PATCH] storage: suppress wrong use-after-move warning --- src/entt/entity/storage.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 6c1c57050..9795cb9ed 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -456,6 +456,7 @@ public: basic_storage(basic_storage &&other, const allocator_type &allocator) : base_type{std::move(other), allocator}, payload{std::move(other.payload), allocator} { + // NOLINTNEXTLINE(bugprone-use-after-move) ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a storage is not allowed"); }