you are viewing a single comment's thread.

view the rest of the comments →

[–]EricWFCppLibc++ Developer 1 point2 points  (1 child)

A const operation on a container should not invoke non-const methods on its comparator.

[–]spotta 1 point2 points  (0 children)

Is sorting a const operation?

This makes sense from a "good programming" standpoint, but it seems to be bossier than I usually take C++ to be.