Re: Learning boost::MPL (Daniel Wallin)

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. Thanks, -A fellow Daniel :)

"Dan" <dan@eloff.info> 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
participants (2)
-
Dan
-
David Abrahams