diff --git a/include/flux/op/cartesian_base.hpp b/include/flux/op/cartesian_base.hpp index 83c4b73f..7ef548df 100644 --- a/include/flux/op/cartesian_base.hpp +++ b/include/flux/op/cartesian_base.hpp @@ -328,11 +328,7 @@ struct cartesian_traits_base_impl : default_sequence_traits { -> decltype(auto) requires (ReadKind == read_kind::map) { - if constexpr (std::is_lvalue_reference_v) { - return std::move(read_at(self, cur)); - } else { - return read_at(self, cur); - } + return default_sequence_traits::move_at(self, cur); } template @@ -340,11 +336,7 @@ struct cartesian_traits_base_impl : default_sequence_traits { -> decltype(auto) requires (ReadKind == read_kind::map) { - if constexpr (std::is_lvalue_reference_v) { - return std::move(read_at_unchecked(self, cur)); - } else { - return read_at_unchecked(self, cur); - } + return default_sequence_traits::move_at_unchecked(self, cur); } template