Browse Source

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

Michele Caini 1 year ago
parent
commit
380afaad8f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/entt/entity/sparse_set.hpp

+ 1 - 0
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<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;