2 #ifndef BOOST_MPL_AUX_PREPROCESSOR_RANGE_HPP_INCLUDED
3 #define BOOST_MPL_AUX_PREPROCESSOR_RANGE_HPP_INCLUDED
5 // Copyright Aleksey Gurtovoy 2002-2004
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 // See http://www.boost.org/libs/mpl for documentation.
17 #include <boost/preprocessor/seq/subseq.hpp>
18 #include <boost/preprocessor/repetition/repeat.hpp>
19 #include <boost/preprocessor/arithmetic/add.hpp>
21 #define BOOST_MPL_PP_RANGE_ITEM(z,n,_) (n)
23 #define BOOST_MPL_PP_RANGE(first, length) \
24 BOOST_PP_SEQ_SUBSEQ( \
25 BOOST_PP_REPEAT(BOOST_PP_ADD(first,length), BOOST_MPL_PP_RANGE_ITEM, _), \
30 #endif // BOOST_MPL_AUX_PREPROCESSOR_RANGE_HPP_INCLUDED