[Bug libstdc++/31247] std::vector::iterator::value_type is accessible

sylvain dot pion at sophia dot inria dot fr gcc-bugzilla@gcc.gnu.org
Sat Mar 17 17:35:00 GMT 2007



------- Comment #3 from sylvain dot pion at sophia dot inria dot fr  2007-03-17 17:35 -------
I'm not sure about the standard requirements.  My "user question" is that
I want to develop with GCC as my main compiler, and I want it to catch
non-portability bugs as much as possible.

@Chris: note that std::iterator_traits would not need to be specialized for
std::vector::iterator if it was made a friend of it, so that it would be the
only one able to access these types.

The compiler I know which still has a pointer for std::vector::iterator is PGCC
(the Portland Group Compiler).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31247



More information about the Gcc-bugs mailing list