Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-09-11 06:41:57


"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 ));

Does that help?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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