Browse Source

any: suppress a wrong warning by the linter

Michele Caini 1 year ago
parent
commit
00365b26d9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/entt/core/any.hpp

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

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