https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105580
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- I've implemented the suggested changes to istreamubf_iterator and also proposed them as a resolution for LWG 2366 https://wg21.link/lwg2366