mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-01 05:44:37 +02:00
keeping it simple
This commit is contained in:
@@ -15,21 +15,14 @@
|
||||
// $Revision$
|
||||
|
||||
#include <boost/preprocessor/seq/subseq.hpp>
|
||||
#include <boost/preprocessor/tuple/to_seq.hpp>
|
||||
#include <boost/preprocessor/repetition/repeat.hpp>
|
||||
#include <boost/preprocessor/arithmetic/add.hpp>
|
||||
#include <boost/preprocessor/punctuation.hpp>
|
||||
#include <boost/preprocessor/enum_params.hpp>
|
||||
#include <boost/preprocessor/empty.hpp>
|
||||
|
||||
#undef BOOST_MPL_PP_RANGE
|
||||
#define BOOST_MPL_PP_RANGE_ITEM(z,n,_) (n)
|
||||
|
||||
#define BOOST_MPL_PP_RANGE(first, length) \
|
||||
BOOST_PP_SEQ_SUBSEQ( \
|
||||
BOOST_PP_TUPLE_TO_SEQ( \
|
||||
BOOST_PP_ADD(first, length), \
|
||||
BOOST_PP_LPAREN() \
|
||||
BOOST_PP_ENUM_PARAMS(BOOST_PP_ADD(first, length), BOOST_PP_EMPTY()) \
|
||||
BOOST_PP_RPAREN() \
|
||||
), \
|
||||
BOOST_PP_REPEAT(BOOST_PP_ADD(first,length), BOOST_MPL_PP_RANGE_ITEM, _), \
|
||||
first, length \
|
||||
) \
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user