This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/31247] std::vector::iterator::value_type is accessible
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2007 17:19:32 -0000
- Subject: [Bug libstdc++/31247] std::vector::iterator::value_type is accessible
- References: <bug-31247-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from chris at bubblescope dot net 2007-03-17 17:19 -------
Depending on how you read it, 24.3.1 looks to me like it might require that. It
says that iterator_traits is defined to include:
typedef typename Iterator::value_type value_type;
and that it is specialised for various types of pointers. If we removed
std::vector<int>::iterator::value_type, we would then have to overload
iterator_traits for vector, and I'm not sure we are allowed to.
Out of interest, which compilers still have a pointer for
std::vector::iterator?
--
chris at bubblescope dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31247