This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



>         * 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.
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]