Opened 12 years ago

Closed 12 years ago

#5411 closed Bugs (fixed)

Fusion: zip_view not working with insert_range

Reported by: joe@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: fusion
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

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;

}

Change History (1)

comment:1 by Joel de Guzman, 12 years ago

Resolution: fixed
Status: newclosed

Yes, this should compile. It turns out to be an MPL bug. I committed a workaround.

Note: See TracTickets for help on using tickets.