Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-01 15:21:27


"Dan" <dan_at_[hidden]> writes:

> Hi Daniel,
>
> I tried your code as well and it works fine (it's also nice and compact)
>
>>I don't know why you are using iter_fold instead of just fold here, but
>>anyway:
>
> Oops, don't assume I know what I'm doing, because I don't! Yesterday was the
> first I ever heard of boost MPL. Whats the difference between iter_fold and
> fold? I replaced iter_fold with fold in your code and it works as well.

fold traverses elements of a sequence, while iter_fold traverses
positions (iterator values).

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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