Boost C++ Libraries: Ticket #6000: back(pop_back(array)) doesn't work https://svn.boost.org/trac10/ticket/6000 <p> The following code does not work as expected: </p> <pre class="wiki">#include &lt;boost/fusion/include/pop_back.hpp&gt; #include &lt;boost/fusion/include/back.hpp&gt; #include &lt;boost/fusion/include/array.hpp&gt; #include &lt;iostream&gt; int main() { boost::array&lt;std::size_t, 2&gt; a = { 10, 50 }; std::cout &lt;&lt; boost::fusion::back(boost::fusion::pop_back(a)) &lt;&lt; std::endl; } </pre><p> The program displays 50 instead of 10. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6000 Trac 1.4.3 Joel de Guzman Mon, 10 Oct 2011 01:34:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6000#comment:1 https://svn.boost.org/trac10/ticket/6000#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> Ticket