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

Reply via email to