|
Boost Users : |
From: Andy Little (andy_at_[hidden])
Date: 2006-09-11 13:50:59
"David Abrahams" <dave_at_[hidden]> wrote in message
news:87pse2admy.fsf_at_pereiro.luannocracy.com...
> "Andy Little" <andy_at_[hidden]> writes:
>
>> "David Abrahams" <dave_at_[hidden]> wrote
>>> "Andy Little" <andy_at_[hidden]> writes:
>>>
>>>> Hi,
>>>>
>>>> I am trying to transform from a fusion vector of values to a
>>>> fusion vector of non-const references to those values, the
>>>> ultimate aim being to assign the original sequence from another
>>>> sequence.
>>>>
>>>> The code below works ok with make_vector, but I want to be able to
>>>> automate it for any fusion sequence. How can I do that?
>>>
>>> You can find an example of exactly that on the zip_iterator_fusion
>>> branch of boost/iterator/zip_iterator.hpp
>>
>> Yikes. I don't really understand what I am meant to do with that. I will have
>> to
>> study it in more detail.
>
> mpl::transform<value_tuple, boost::add_reference<_> > ref_tuple((
> value_tuple ));
Yes if it does what it says on the tin :-)
Now all I need is a matrix iterator, but I guess I should figure that out
myself.
regards
Andy Little
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