https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100226
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > The template argument '_Compare = paircmp' shows the type user as the > comparison object. > > So paircmp::operator() needs to be const. I can confirm that it works, thank you for help!