https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Matt Bentley from comment #16) > Yup - arguably it would be nice to have an overload for vector iterators > that does the same thing. We already handle that, see the __niter_base functions which unwrap std::vector and std::basic_string iterators into pointers.