Boost C++ Libraries: Ticket #5411: Fusion: zip_view not working with insert_range https://svn.boost.org/trac10/ticket/5411 <p> In this simple example it appears that zip_view doesn't work with insert_range. That's a bug, right? </p> <p> int main() { </p> <blockquote> <p> using boost::fusion::vector; </p> </blockquote> <blockquote> <p> vector&lt;float, float&gt; v(3.14,2.17); </p> </blockquote> <blockquote> <p> <em> Doesn't compile. cout &lt;&lt; insert_range( v, next(begin(v)), zip(v, v) ) &lt;&lt; endl; </em></p> </blockquote> <blockquote> <p> <em> Does compile. cout &lt;&lt; insert_range(v, next(begin(v)), as_vector( zip(v, v) ) ) &lt;&lt; endl; </em></p> </blockquote> <blockquote> <p> <em> Why do I need to convert the zip_view to a vector for insert_range to work? </em></p> </blockquote> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5411 Trac 1.4.3 Joel de Guzman Sun, 03 Apr 2011 23:22:59 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5411#comment:1 https://svn.boost.org/trac10/ticket/5411#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Yes, this should compile. It turns out to be an MPL bug. I committed a workaround. </p> Ticket