skypjack 2 месяцев назад
Родитель
Сommit
d361ad333e
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/entt/container/dense_map.hpp

+ 2 - 0
src/entt/container/dense_map.hpp

@@ -469,6 +469,7 @@ public:
      * internal array.
      * internal array.
      */
      */
     [[nodiscard]] const_iterator cend() const noexcept {
     [[nodiscard]] const_iterator cend() const noexcept {
+        // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) - waiting for C++20 (and stl::span)
         return packed.first().data() + packed.first().size();
         return packed.first().data() + packed.first().size();
     }
     }
 
 
@@ -479,6 +480,7 @@ public:
 
 
     /*! @copydoc end */
     /*! @copydoc end */
     [[nodiscard]] iterator end() noexcept {
     [[nodiscard]] iterator end() noexcept {
+        // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) - waiting for C++20 (and stl::span)
         return packed.first().data() + packed.first().size();
         return packed.first().data() + packed.first().size();
     }
     }