Skip to content

Commit

Permalink
type_traits: thanks msvc for accepting invalid code, love it
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 31, 2023
1 parent f009d99 commit 2a3ae06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/entt/core/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,9 @@ struct has_value_type: std::false_type {};
template<typename Type>
struct has_value_type<Type, std::void_t<typename Type::value_type>>: std::true_type {};

template<typename>
[[nodiscard]] constexpr bool dispatch_is_equality_comparable();

template<typename Type, std::size_t... Index>
[[nodiscard]] constexpr bool unpack_maybe_equality_comparable(std::index_sequence<Index...>) {
return (dispatch_is_equality_comparable<std::tuple_element_t<Index, Type>>() && ...);
Expand Down

0 comments on commit 2a3ae06

Please sign in to comment.