https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127918
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- I checked the rest of <algorithm>, <numeric>, and <memory>. This seems to be the only place that's missing borrowed_iterator_t. The patch adds a redundant move, which shouldn't be needed. The new test has a redundant <array> include. Otherwise this looks good, thanks.
