[Bug libstdc++/62169] map iterators under _GLIBCXX_DEBUG diverge

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 24 10:35:00 GMT 2014


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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's not an option IMHO. See http://www​.stroustrup.com/SCARY.pdf for the
benefits of the current design. Those benefits outweigh the advantage of having
non-portable code diagnosed. Debug iterators can't be SCARY because they have a
pointer back to their patent container so have to depend on the exact type.


More information about the Gcc-bugs mailing list