Skip to content

Commit

Permalink
any: suppress a wrong warning by the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 24, 2025
1 parent 1eaff4f commit 00365b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entt/core/any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class basic_any {
};

template<typename Type>
// NOLINTNEXTLINE(bugprone-sizeof-expression)
static constexpr bool in_situ = (Len != 0u) && alignof(Type) <= Align && sizeof(Type) <= Len && std::is_nothrow_move_constructible_v<Type>;

template<typename Type>
Expand Down

0 comments on commit 00365b2

Please sign in to comment.