[committed] libstdc++: P1964R2 Wording for boolean-testable

Jonathan Wakely jwakely@redhat.com
Wed Feb 19 10:57:00 GMT 2020


On 18/02/20 13:49 +0000, Jonathan Wakely wrote:
>On 17/02/20 22:27 +0100, Tim Song wrote:
>>On Mon, Feb 17, 2020 at 12:34 PM Jonathan Wakely <jwakely@redhat.com> wrote:
>>
>>>This removes the complicated std::boolean concept, as agreed in Prague.
>>>
>>>        * include/bits/ranges_algo.h (__find_fn, __find_first_of_fn)
>>>        (__adjacent_find_fn): Cast result of predicate to bool.
>>
>>
>>
>>Um, why? These look fine without the cast. (The WP was doing == false,
>>which is a different matter.)
>
>Good point, I'll undo those bits. Thanks.

Looks like we have a few other casts to bool that are redundant
post-p1946r2, not just the ones I added.

This removes them, testing it now.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 3932 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200219/fc486831/attachment.bin>


More information about the Gcc-patches mailing list