[Bug libstdc++/102589] spaceship: std::map does not use specialised operator< for value

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102589 --- Comment #2 from Jonathan Wakely --- Overloading < for shared_ptr like that is a bit questionable anyway. You can use std::lexicographical_compare with a custom comparison function if you want the custom less-than behaviour: if (std::le

[Bug libstdc++/102589] spaceship: std::map does not use specialised operator< for value

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102589 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRME