Просмотр исходного кода

any: suppress a wrong warning by the linter

Michele Caini 1 год назад
Родитель
Сommit
00365b26d9
1 измененных файлов с 1 добавлено и 0 удалено
  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>
     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>;
     static constexpr bool in_situ = (Len != 0u) && alignof(Type) <= Align && sizeof(Type) <= Len && std::is_nothrow_move_constructible_v<Type>;
 
 
     template<typename Type>
     template<typename Type>