Skip to content

Commit

Permalink
type_traits: sizeof(A*) used on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 27, 2025
1 parent 9aaef99 commit 0aa6cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entt/core/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)> {};

/**
Expand Down

0 comments on commit 0aa6cb8

Please sign in to comment.