[Bug c++/49734] New: Adding using std::for_each inconsistent with return value
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49734 Summary: Adding using std::for_each inconsistent with return value Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component
[Bug c++/49734] Adding using std::for_each inconsistent with return value
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49734 --- Comment #3 from MaratIK 2011-07-13 15:23:52 UTC --- (In reply to comment #2) > int acc = std::accumulate(c, c + 5, 0); Thanks. I used overloaded std::accumulate with BinaryOperation (Adder) because indices for c are in l. --- struct Ad