C++ Logo


Advanced search

Unexpected constraints on adjacent_transform_view::base()

From: Bo Persson <bo_at_[hidden]>
Date: Fri, 16 Jun 2023 21:07:03 +0200
The class ranges::adjacent_transform_view got a base() member from

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)?

Received on 2023-06-16 19:07:12