Boost logo

Boost Users :

Subject: Re: [Boost-users] [Fusion] transform / transform_view / binary sequence iteration
From: Thomas Taylor (thomas.taylor_at_[hidden])
Date: 2010-03-02 07:48:24


Hicham Mouline wrote:

> -----Original Message-----
> From: "Thomas Taylor" [thomas.taylor_at_[hidden]]
> Date: 02/03/2010 11:49 AM
> To: boost-users_at_[hidden]
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net