Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#2355 closed Bugs (fixed)

discrepancy between std::accumulate and fusion::accumulate

Reported by: Stjepan Rajko Owned by: Joel de Guzman
Milestone: Boost 1.42.0 Component: fusion
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc: mr.chr.schmidt@…

Description

std::accumulate expects binary functions which take the accumulator as the first argument and the sequence element as the second argument. fusion::accumulate expects the arguments in reverse.

Attachments (2)

fusion.diff.bz2 (41.2 KB ) - added by Christopher Schmidt 13 years ago.
note: the actual patch exceeds the 256kb file size limit
proto.diff (1.8 KB ) - added by Christopher Schmidt 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Christopher Schmidt, 13 years ago

Owner: changed from Joel de Guzman to Christopher Schmidt
Status: newassigned

I am on it.

by Christopher Schmidt, 13 years ago

Attachment: fusion.diff.bz2 added

note: the actual patch exceeds the 256kb file size limit

by Christopher Schmidt, 13 years ago

Attachment: proto.diff added

comment:2 by Christopher Schmidt, 13 years ago

Cc: mr.chr.schmidt@… added
Milestone: Boost 1.37.0Boost 1.42.0
Owner: changed from Christopher Schmidt to Joel de Guzman
Severity: ProblemCosmetic
Status: assignednew
Version: Boost 1.36.0Boost Development Trunk

comment:3 by Christopher Schmidt, 13 years ago

Resolution: fixed
Status: newclosed

comment:4 by ivg@…, 13 years ago

I think, that in future, it will be good to list such backward-compatibility breaking API changes explicitly under a big fat heading "Incompatible changes". Boost is a modest library that is widly used. It's not in alpha realease. So API must remain stable.

comment:5 by anonymous, 12 years ago

+1

I just spent 2 hours unnecessary debugging after upgrading

Note: See TracTickets for help on using tickets.