sparse_set: suppress a warning from the linter, I know what I'm doing here

This commit is contained in:
Michele Caini
2025-01-21 11:10:32 +01:00
parent 7607c0dc4c
commit 380afaad8f

View File

@@ -268,6 +268,7 @@ protected:
sparse_ref(packed.back()) = traits_type::combine(entt, traits_type::to_integral(packed.back()));
packed[static_cast<size_type>(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;