*: linter directives

This commit is contained in:
Michele Caini
2024-08-02 17:06:50 +02:00
parent c97a5f1b50
commit cdb1f23cbb
2 changed files with 2 additions and 0 deletions

View File

@@ -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());
}

View File

@@ -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 {