|
Boost Users : |
From: Joel de Guzman (joel_at_[hidden])
Date: 2006-09-09 05:29:45
Andy Little wrote:
> "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.
> I reckon that a get_ref_vector(fusion::vector) would be quite useful. I guess
> there isnt much difference to a view though?.
> Anyway I have continued hacking away and so here is my latest efforts, using
> fusion to do a dot product of two vectors.
> Maybe it would be a useful example in the fusion docs?. Anyway here it is FWIW:
Yes, definitely! I'll have to ask for documentation though. A simple
readme file is ok, plus, lots of comments.
Regards,
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
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