[PATCH 1/2] libstdc++: Forward second argument of views::iota using the correct type

Jonathan Wakely jwakely@redhat.com
Thu Feb 20 18:40:00 GMT 2020


On 20/02/20 12:52 -0500, Patrick Palka wrote:
>On Thu, 20 Feb 2020, Jonathan Wakely wrote:
>
>> On 19/02/20 23:53 -0500, Patrick Palka wrote:
>> > We are forwarding the second argument of views::iota using the wrong type,
>> > causing compiling errors when calling it with a value and bound of different
>> > types, like in the test case below.
>>
>> Good catch, OK for master.
>
>Oops, the second patch in this series includes a friendship change that
>should instead be a part of this patch: iota_view::_Iterator must
>befriend iota_view::_Sentinel, so that iota_view::_Sentinel::operator==
>can access its private members.  This is needed for the new test in
>iota_view.cc to compile.
>
>Tested on x86_64-pc-linux-gnu, does this look OK to commit?

Yes, OK for master.




More information about the Libstdc++ mailing list