This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/33488] parallel v3: std::accumulate uses accumulator of wrong type



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]