[Bug libstdc++/87020] comparison operator isn't called for stateless allocator without is_always_equal for C++11/14
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 20 09:01:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87020
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The is_always_equal trait was invented in libstdc++ before it got into the
standard, and if we didn't give the same behaviour for C++11 and C++14 there
would be ODR violations. So this is not going to change.
The trait was added to resolve a defect report about missing 'noexcept' on
container member functions, so arguably it's needed to fix defects in C++11 and
C++14 anyway.
More information about the Gcc-bugs
mailing list