From c97f7c5534b0fa2967417605fe4442d586b163cc Mon Sep 17 00:00:00 2001 From: slymz Date: Sat, 12 Aug 2023 09:57:53 -0700 Subject: [PATCH] Proposed disable mixed &-prvalue reference implementation. --- impl/concat/concat.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/impl/concat/concat.hpp b/impl/concat/concat.hpp index a188477..b1e2eb7 100644 --- a/impl/concat/concat.hpp +++ b/impl/concat/concat.hpp @@ -34,12 +34,17 @@ using concat_rvalue_reference_t = common_reference_t using concat_value_t = common_type_t...>; +template +concept concat_no_prref = is_reference_v || + (is_reference_v && + !same_as, ConcatRef>); + // clang-format off template concept concat_indirectly_readable_impl = requires (const It it){ { *it } -> convertible_to; { ranges::iter_move(it) } -> convertible_to; -}; +} && concat_no_prref>; template concept concat_indirectly_readable =