[Boost-bugs] [Boost C++ Libraries] #6760: PUSH_BACK/_FRONT on empty array broken

Subject: [Boost-bugs] [Boost C++ Libraries] #6760: PUSH_BACK/_FRONT on empty array broken
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-03 15:15:32


#6760: PUSH_BACK/_FRONT on empty array broken
-----------------------------------+----------------------------------------
 Reporter: yves.pausch@… | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: Boost 1.50.0 | Component: preprocessor
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 BOOST_PP_ARRAY_PUSH_BACK & BOOST_PP_ARRAY_PUSH_FRONT on empty array leads
 to invalid C++ because of unresolved macro

 Sample to reproduce this bug:

 #define ARRAY (3, (a, b, c))
 #define EMPTY_ARRAY (0, ())
 BOOST_PP_ARRAY_PUSH_BACK(ARRAY, d)
 BOOST_PP_ARRAY_PUSH_BACK(EMPTY_ARRAY, d)

 brings '''using 1.48'''

 (4, (a, b, c , d))
 (1, ( d))

 which is expected and correct

 brings '''using 1.49'''

 (4, (a, b, c , d))
 (1, (BOOST_PP_TUPLE_REM_0 () d))

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