Re: [Boost-bugs] [Boost C++ Libraries] #12431: BOOST_PP_TUPLE_PUSH_FRONT fails to expand with BOOST_PP_EXPAND

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12431: BOOST_PP_TUPLE_PUSH_FRONT fails to expand with BOOST_PP_EXPAND
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-20 21:23:31


#12431: BOOST_PP_TUPLE_PUSH_FRONT fails to expand with BOOST_PP_EXPAND
-------------------------------+---------------------------
  Reporter: mjtruog@… | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: preprocessor
   Version: Boost 1.56.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by mjtruog@…):

 To avoid this bug in BOOST_PP_TUPLE_TO_SEQ I used the work-around below:
 {{{
 #include <boost/preprocessor/list/for_each.hpp>
 #include <boost/preprocessor/tuple/to_list.hpp>

 #define TUPLE_TO_SEQ_E(r, data, elem) (elem)
 #define TUPLE_TO_SEQ(I, T) \
     BOOST_PP_LIST_FOR_EACH(TUPLE_TO_SEQ_E, _, BOOST_PP_TUPLE_TO_LIST(I,
 T))
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12431#comment:2>
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:20 UTC