Date: Fri, 16 Jun 2023 21:31:31 +0200
Am Fr., 16. Juni 2023 um 21:07 Uhr schrieb Bo Persson via
Std-Discussion <std-discussion_at_[hidden]>:
>
> The class ranges::adjacent_transform_view got a base() member from
> https://wg21.link/lwg3848
>
> It looks like
>
> constexpr V base() const & requires copy_constructible<InnerView>
> { return inner_.base(); }
>
>
> Why is the requirement that InnerView is copy constructible, when it in
> fact returns an object of type V (a template parameter)?
Looks like a defect to me, please submit an LWG issue.
Thanks,
- Daniel
Std-Discussion <std-discussion_at_[hidden]>:
>
> The class ranges::adjacent_transform_view got a base() member from
> https://wg21.link/lwg3848
>
> It looks like
>
> constexpr V base() const & requires copy_constructible<InnerView>
> { return inner_.base(); }
>
>
> Why is the requirement that InnerView is copy constructible, when it in
> fact returns an object of type V (a template parameter)?
Looks like a defect to me, please submit an LWG issue.
Thanks,
- Daniel
Received on 2023-06-16 19:31:43