Re: [Boost-bugs] [Boost C++ Libraries] #7769: BOOST_MPL_LIMIT_METAFUNCTION_ARITY > 8 causes compilation error on gcc

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7769: BOOST_MPL_LIMIT_METAFUNCTION_ARITY > 8 causes compilation error on gcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-08 20:27:30


#7769: BOOST_MPL_LIMIT_METAFUNCTION_ARITY > 8 causes compilation error on gcc
------------------------------------+---------------------------------
  Reporter: Adam Lach <salvage@…> | Owner: agurtovoy
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: mpl
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords: arity, metafunction
------------------------------------+---------------------------------

Comment (by eldiener):

 Good work but...

 First your COUNT macro needs to have an absolutely distinctive name, such
 as BOOST_MPL_PP_RANGE_COUNT. Second you should be able to generate a seq
 in-place using:

 #define BOOST_MPL_PP_RANGE_COUNT(z,n,_) (n)

 and then in place of all that BOOST_PP_TUPLE_TO_SEQ stuff:

 BOOST_PP_REPEAT(BOOST_PP_ADD(first,length),BOOST_MPL_PP_RANGE_COUNT,_)

 with the appropriate adjustments to the header files.

 Finally the eventual fix to MPL needs appropriate tests to make sure that
 the possible increase in MPL arity above 8 does indeed work in MPL in
 whatever situations this increase may effect.

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