Re: [Boost-bugs] [Boost C++ Libraries] #3446: [boost] [fusion] transform does not return a mutable view

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3446: [boost] [fusion] transform does not return a mutable view
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-14 06:03:32


#3446: [boost] [fusion] transform does not return a mutable view
--------------------------------+-------------------------------------------
 Reporter: jhellrung@… | Owner: djowel
     Type: Feature Requests | Status: new
Milestone: Boost 1.41.0 | Component: fusion
  Version: Boost 1.40.0 | Severity: Optimization
 Keywords: |
--------------------------------+-------------------------------------------

Comment(by djowel):

 copy is just assign:

    dest = src

 It works with any src and dest type as long as src is a fusion sequence
 and dest is a fusion container with the same element types and same number
 of elements.

 a mutating transform is just:

    for_each(s, f)

 So, I dont see why your code can't be rewritten as:

    dest = src;
    for_each(dest, project());

 What am I missing?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3446#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC