Skip to content

Commit

Permalink
type_traits: try to make all compilers happy
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 19, 2024
1 parent 7a59e14 commit 6601ebe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/entt/core/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,14 @@ inline constexpr bool is_complete_v = is_complete<Type>::value;
template<typename Type, typename = void>
struct is_iterator: std::false_type {};

/*! @copydoc is_iterator */
template<typename Type>
struct is_iterator<const Type>: is_iterator<Type> {};

/*! @copydoc is_iterator */
template<>
struct is_iterator<void *>: std::false_type {};

/*! @copydoc is_iterator */
template<typename Type>
struct is_iterator<Type, std::void_t<typename std::iterator_traits<Type>::iterator_category>>: std::true_type {};
Expand Down

0 comments on commit 6601ebe

Please sign in to comment.