[PATCH] libstdc++: Make operator== for std::tuple convert to bool [PR119545]

2025-04-04 Thread Jonathan Wakely
The boolean-testable requirements don't require the type to be copyable, so we need to convert to bool before it might need to be copied. libstdc++-v3/ChangeLog: PR libstdc++/119545 * include/std/tuple (operator==): Convert comparison results to bool. * testsuite/2

Re: [PATCH] libstdc++: Make operator== for std::tuple convert to bool [PR119545]

2025-03-31 Thread Jonathan Wakely
On Mon, 31 Mar 2025 at 15:53, Tomasz Kaminski wrote: > > > > On Mon, Mar 31, 2025 at 3:03 PM Jonathan Wakely wrote: >> >> The boolean-testable requirements don't require the type to be copyable, >> so we need to convert to bool before it might need to be copied. >> >> libstdc++-v3/ChangeLog: >> >

Re: [PATCH] libstdc++: Make operator== for std::tuple convert to bool [PR119545]

2025-03-31 Thread Tomasz Kaminski
On Mon, Mar 31, 2025 at 3:03 PM Jonathan Wakely wrote: > The boolean-testable requirements don't require the type to be copyable, > so we need to convert to bool before it might need to be copied. > > libstdc++-v3/ChangeLog: > > PR libstdc++/119545 > * include/std/tuple (operator=