Skip to content

Commit

Permalink
Fix for has_duplicates with one template parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Aug 2, 2024
1 parent 2f8fb0f commit f7c7952
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/etl/type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,9 @@ typedef integral_constant<bool, true> true_type;
etl::true_type,
has_duplicates<TRest...>> {};

template <typename T>
struct has_duplicates<T> : etl::false_type {};

template <>
struct has_duplicates<> : etl::false_type {};
#endif
Expand Down

0 comments on commit f7c7952

Please sign in to comment.