This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33488] parallel v3: std::accumulate uses accumulator of wrong type
- From: "singler at ira dot uka dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2007 18:34:46 -0000
- Subject: [Bug libstdc++/33488] parallel v3: std::accumulate uses accumulator of wrong type
- References: <bug-33488-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from singler at ira dot uka dot de 2007-09-19 18:34 -------
Instead of std::plus, a functor should be used that accepts two different types
for LHS and RHS, Result and
std::iterator_traits<RandomAccessIterator>::value_type, respectively.
--
singler at ira dot uka dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |singler at ira dot uka dot
| |de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33488