]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Do not define operator!= in <random> for C++20
authorJonathan Wakely <jwakely@redhat.com>
Thu, 24 Nov 2022 21:16:41 +0000 (21:16 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 25 Nov 2022 15:01:50 +0000 (15:01 +0000)
commit48e4a9d93885b3d82cfcbf1e804fe9c3eaabf157
tree26421013b2299948d9a84c99f24d51ca4c3a5662
parent6bd8d119227ff9a4740739e91898258bcd854b9b
libstdc++: Do not define operator!= in <random> for C++20

These overloads are not needed in C++20 as they can be synthesized by
the compiler. Removing them means less code to compile when including
these headers.

libstdc++-v3/ChangeLog:

* include/bits/random.h [three_way_comparison] (operator!=):
Do not define inequality operators when C++20 three way
comparisons are supported.
* include/ext/random [three_way_comparison] (operator!=):
Likewise.
libstdc++-v3/include/bits/random.h
libstdc++-v3/include/ext/random
This page took 0.057646 seconds and 5 git commands to generate.