Skip to content

Commit

Permalink
Remove unused value_t partial specialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle committed Aug 20, 2024
1 parent e6943e4 commit 3932ddf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions include/flux/core/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <tuple>
#include <type_traits>

// clang-format off

#if defined(__cpp_lib_ranges_zip) && (__cpp_lib_ranges_zip >= 202110L)
#define FLUX_HAVE_CPP23_TUPLE_COMMON_REF
#endif
Expand Down Expand Up @@ -77,11 +79,6 @@ template <has_element_type T>
requires requires { typename traits_t<T>::value_type; }
struct value_type<T> { using type = typename traits_t<T>::value_type; };

template <has_element_type T>
requires requires { traits_t<T>::using_primary_template; } &&
requires { typename T::value_type; }
struct value_type<T> { using type = typename T::value_type; };

} // namespace detail

FLUX_EXPORT
Expand Down Expand Up @@ -134,8 +131,6 @@ concept sequence_requirements =
{ Traits::inc(seq, cur) };
};

// clang-format off

template <typename Seq, typename Traits = sequence_traits<std::remove_cvref_t<Seq>>>
concept sequence_concept =
sequence_requirements<Seq> &&
Expand Down

0 comments on commit 3932ddf

Please sign in to comment.