[Boost-bugs] [Boost C++ Libraries] #6000: back(pop_back(array)) doesn't work

Subject: [Boost-bugs] [Boost C++ Libraries] #6000: back(pop_back(array)) doesn't work
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-09 16:41:21


#6000: back(pop_back(array)) doesn't work
-------------------------------------+--------------------------------------
 Reporter: mgaunard | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: fusion array |
-------------------------------------+--------------------------------------
 The following code does not work as expected:

 {{{
 #include <boost/fusion/include/pop_back.hpp>
 #include <boost/fusion/include/back.hpp>
 #include <boost/fusion/include/array.hpp>
 #include <iostream>

 int main()
 {
     boost::array<std::size_t, 2> a = { 10, 50 };
     std::cout << boost::fusion::back(boost::fusion::pop_back(a)) <<
 std::endl;
 }
 }}}

 The program displays 50 instead of 10.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6000>
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:07 UTC