[committed] libstdc++: P1964R2 Wording for boolean-testable
Jonathan Wakely
jwakely@redhat.com
Tue Feb 18 13:49:00 GMT 2020
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.
>> * include/std/concepts (__boolean): Remove.
>> (__detail::__boolean_testable_impl, __detail::__boolean_testable):
>> Add
>> new helper concepts.
>> (__detail::__weakly_eq_cmp_with, totally_ordered,
>> totally_ordered_with)
>> (predicate): Use __boolean_testable instead of boolean.
>> * libsupc++/compare (__detail::__partially_ordered, _Synth3way):
>> Likewise.
>>
>> Tested powerpc64le-linux, committed to master.
>>
>>
>
More information about the Libstdc++
mailing list