
21 Aug
2010
21 Aug
'10
7:47 a.m.
Zitat von David Sankel <camior@gmail.com>:
Equivalent to f(....f(f(e1,e2),e3)...) where e1 ...eN are the elements of seq.
isn't this equivalent to fold(pop_front(seq),front(seq),f) ?
Almost...
fold(pop_front(seq),front(seq), flip( f ) )
where flip returns a version of f with swapped arguments.
are you using an older version of boost? the arguments to f were swapped some time last year: libs/fusion/doc/html/fusion/change_log.html I don't know why this was done, but this might be the reason. -Stefan