[Bug libstdc++/31247] std::vector::iterator::value_type is accessible
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 19 11:37:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31247
--- Comment #16 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #15)
> I'm still not motivated to implement this request though.
It would break too much code.
If people really insisted (which they don't), I believe it would be safer to
specialize iterator_traits and _remove_ the nested vector::iterator::* typedefs
than to make them private, since access control in C++ is a trap.
More information about the Gcc-bugs
mailing list