This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2007 19:11:05 -0000
- Subject: [Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared
- References: <bug-33490-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from bangerth at dealii dot org 2007-09-19 19:11 -------
(In reply to comment #1)
> That this is missing in the requirement lists in 24.1.1 and 24.1.2 is probably
> due to the fact that it does not concern the Iterator class itself, but
> iterator_traits<Iterator>.
I disagree with this interpretation. For me, Table 72 states the requirements
that InputIterators have to satisfy. It doesn't list defining iterator_traits,
and I don't think 24.3.1 wants to come back and add this requirement.
This also appears to be the interpretation that libstdc++ takes in most
places.
What do others think about this?
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33490