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:31: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 Jeffrey Hellrung <jhellrung@…>):

 First, I wasn't aware that assignment of a Boost.Fusion sequence to, e.g.,
 a boost::array would work? I admit I've never tried it...

 Second, think of project as something like
 {{{
 project
 {
     template< class First, class Second >
     First& operator()(std::pair< First, Second >& x) const
     { return x.first; }
 }
 }}}
 I essentially want something to the effect of
 {{{
 for i = 0, ..., size
     dest[i].member_var = source[i]
 }}}
 - Jeff

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3446#comment:4>
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