From 380afaad8ffefb1a2870eb40a353ec1c87f48959 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 21 Jan 2025 11:10:32 +0100 Subject: [PATCH] sparse_set: suppress a warning from the linter, I know what I'm doing here --- src/entt/entity/sparse_set.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index 6422be35b..0a30ba9a5 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -268,6 +268,7 @@ protected: sparse_ref(packed.back()) = traits_type::combine(entt, traits_type::to_integral(packed.back())); packed[static_cast(entt)] = packed.back(); // unnecessary but it helps to detect nasty bugs + // NOLINTNEXTLINE(bugprone-assert-side-effect) ENTT_ASSERT((packed.back() = null, true), ""); // lazy self-assignment guard self = null;