Skip to content

Commit

Permalink
try fold expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Jan 21, 2024
1 parent 80c9548 commit f454c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dGame/dEntity/Archetype.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Archetype final : public IArchetype {
*/
template <ComponentType CType>
[[nodiscard]] static constexpr bool HasComponent() noexcept {
return std::disjunction_v<std::is_same<CType, CTypes>...>;
return (std::is_same_v<CType, CTypes> || ...); //std::disjunction_v<std::is_same<CType, CTypes>...>;
}

/**
Expand Down

0 comments on commit f454c97

Please sign in to comment.