Re: [Boost-users] [Fusion] transform / transform_view / binary sequence iteration

-----Original Message-----
From: "Thomas Taylor" [thomas.taylor@univie.ac.at]
Date: 02/03/2010 11:49 AM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [Fusion] transform / transform_view / binary sequence
iteration
Hi!
Started out with tuple but soon moved to fusion as it suits my needs much
better, so thanks for fusion!
My problem is the following:
list seq2(1,2,3);
list

Hicham Mouline wrote:
-----Original Message----- From: "Thomas Taylor" [thomas.taylor@univie.ac.at] Date: 02/03/2010 11:49 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Fusion] transform / transform_view / binary sequence iteration
Hi!
[...]
How can I use a transform_view (the result of transform(S1,S2,F)) as input for accumulate?
Thank you, Thomas
_______________________________________________
In my basic experience, this has been a matter of constness. Checkout fusion docs and make sure you follow exactly the function signatures.
Oh! you need an initial state for accumulate() Thanks! Although I used accumulate successfully in other bits of the code, I totally missed out on the initial state here. With the correct arguments to accumulate it works.
Cheers, Thomas
participants (2)
-
Hicham Mouline
-
Thomas Taylor