Browse Source

organizer: instruct the linter on known uses of C-style arrays

Michele Caini 1 year ago
parent
commit
79e1a9a3d9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/entt/entity/organizer.hpp

+ 2 - 0
src/entt/entity/organizer.hpp

@@ -134,10 +134,12 @@ class basic_organizer final {
         if constexpr(sizeof...(Type) == 0u) {
             return {};
         } else {
+            // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays)
             const type_info *info[]{&type_id<Type>()...};
             const auto length = count < sizeof...(Type) ? count : sizeof...(Type);
 
             for(std::size_t pos{}; pos < length; ++pos) {
+                // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
                 buffer[pos] = info[pos];
             }