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++/51540] partial_sum (int *, int *, int *, multiplies < int >) does not use operator +(complex, complex)


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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-14 11:02:39 UTC ---
(In reply to comment #5)
> My code does not contain complex numbers but the algorithm is documented to use
> an operator that uses complex numbers.

That's just a doxygen bug, linking to the wrong operator+

If you want to report a documentation bug, say so, instead of being vague and
claiming the code is doing the wrong thing.

Your code fails to run because your assertion tests the wrong thing, not
because partial_sum is wrong.
If you don't know what partial_sum does, it's documented in many other places
e.g. http://www.sgi.com/tech/stl/partial_sum.html


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