This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51540] partial_sum (int *, int *, int *, multiplies < int >) does not use operator +(complex, complex)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Dec 2011 11:02:39 +0000
- Subject: [Bug libstdc++/51540] partial_sum (int *, int *, int *, multiplies < int >) does not use operator +(complex, complex)
- Auto-submitted: auto-generated
- References: <bug-51540-4@http.gcc.gnu.org/bugzilla/>
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