https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100226
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- The template argument '_Compare = paircmp' shows the type user as the comparison object. So paircmp::operator() needs to be const.
redi at gcc dot gnu.org via Gcc-bugs Fri, 23 Apr 2021 01:28:03 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100226
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- The template argument '_Compare = paircmp' shows the type user as the comparison object. So paircmp::operator() needs to be const.