any: suppress a wrong warning by the linter

This commit is contained in:
Michele Caini
2025-01-24 09:34:46 +01:00
parent 1eaff4f3d9
commit 00365b26d9

View File

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