1
0
Michele Caini 1 жил өмнө
parent
commit
cdb1f23cbb

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

@@ -268,6 +268,7 @@ class dense_map {
 
     template<typename Other>
     [[nodiscard]] std::size_t key_to_bucket(const Other &key) const noexcept {
+        // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay)
         return fast_mod(static_cast<size_type>(sparse.second()(key)), bucket_count());
     }
 

+ 1 - 0
src/entt/core/any.hpp

@@ -132,6 +132,7 @@ class basic_any {
                 if constexpr(std::is_aggregate_v<plain_type> && (sizeof...(Args) != 0u || !std::is_default_constructible_v<plain_type>)) {
                     ::new(&storage) plain_type{std::forward<Args>(args)...};
                 } else {
+                    // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay)
                     ::new(&storage) plain_type(std::forward<Args>(args)...);
                 }
             } else {