Boost logo

Boost :

Subject: Re: [boost] [Fusion] fold takes state by cref. Why ?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-04-10 12:12:04


On 10/04/2011 16:30, Joel Falcou wrote:
> Why is the State passed by const reference ? I have a couple of use case
> (like using fold to access the element (i0,...,in) of a fusion
> sequence of pointer to ... pointer to T array) where I need to be able
> to discriminate the constness of the State to forward to
> the proper PFO overload of operator().
>
> Is there any intrinsic stuff I am missing ?

Can you not use boost::ref ?


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