Subject: [Boost-bugs] [Boost C++ Libraries] #5411: Fusion: zip_view not working with insert_range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-02 13:37:45
#5411: Fusion: zip_view not working with insert_range
------------------------------+---------------------------------------------
Reporter: joe@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
Version: Boost 1.47.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
In this simple example it appears that zip_view doesn't work with
insert_range. That's a bug, right?
int main() {
using boost::fusion::vector;
vector<float, float> v(3.14,2.17);
// Doesn't compile.
cout << insert_range( v, next(begin(v)), zip(v, v) ) << endl;
// Does compile.
cout << insert_range(v, next(begin(v)), as_vector( zip(v, v) ) )
<< endl;
// Why do I need to convert the zip_view to a vector for
insert_range to work?
return 0;
}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5411> 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:06 UTC