https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100226
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- The static assert was added intentionally, the comparison function used with the container must have a const-qualified operator(). I would check that in the nurses code first.