Boost logo

Boost :

From: dan marsden (danmarsden_at_[hidden])
Date: 2007-06-13 16:38:43


Christian Holmquist wrote:
>In order to use the latest result_of mechanism in fusion, I updated my
>working copy from cvs head a couple of hours ago.
>
>The following example from the fusion documentation asserts, and I
>experienced similiar behaviour in my code, which stopped working.
>The generated string in the example is "21", not "12" as expected.
>
>Is there something with fold() that have changed?

Yes, some loop unrolling was added to the algorithms, incorrectly in this case
as you've found. Fold and accumulate have been corrected in cvs head. I've
also tightened up our unit tests, as this regression was not picked up in the
tests.

Thanks for spotting this one.

Cheers

Dan

      ___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk