https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90919

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2020-01-28 00:00:00         |2025-7-12

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The least invasive change might be to make that constructor private, and then
add every type that uses __normal_iterator as a friend (vector, string,
stacktrace, optional, etc.)

That way we wouldn't have to change every begin(), end() etc. function that
constructs one of those iterators.

That would break any users who are using __normal_iterator for their own
containers, which we don't really support but we also don't prevent. We could
add a new public two-parameter constructor that they could use instead.

Reply via email to