]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make operator== for std::tuple convert to bool [PR119545]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 31 Mar 2025 11:17:02 +0000 (12:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 31 Mar 2025 16:12:26 +0000 (17:12 +0100)
commitb9adf3a4c8112df1d74440157f578a8344ebe166
tree60a4f0b23a38b07010fd227957a516b92dbc6846
parentc7eec82942496520d6b0604aa945a89f279e2562
libstdc++: Make operator== for std::tuple convert to bool [PR119545]

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/20_util/tuple/comparison_operators/119545.cc: New
test.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/comparison_operators/119545.cc [new file with mode: 0644]