type_traits: sizeof(A*) used on purpose

This commit is contained in:
Michele Caini
2025-01-27 13:46:19 +01:00
parent 9aaef992ba
commit 0aa6cb8301

View File

@@ -63,6 +63,7 @@ struct size_of: std::integral_constant<std::size_t, 0u> {};
/*! @copydoc size_of */
template<typename Type>
struct size_of<Type, std::void_t<decltype(sizeof(Type))>>
// NOLINTNEXTLINE(bugprone-sizeof-expression)
: std::integral_constant<std::size_t, sizeof(Type)> {};
/**