diff -dur programs/boost_1_43_0/boost/preprocessor/seq/replace.hpp workspace/booster/boost/preprocessor/seq/replace.hpp
|
old
|
new
|
|
| 1 | 1 | # /* ************************************************************************** |
| 2 | 2 | # * * |
| 3 | 3 | # * (C) Copyright Paul Mensonides 2002. |
| | 4 | # * (C) Copyright Wolf Lammen 2010. |
| 4 | 5 | # * Distributed under the Boost Software License, Version 1.0. (See |
| 5 | 6 | # * accompanying file LICENSE_1_0.txt or copy at |
| 6 | 7 | # * http://www.boost.org/LICENSE_1_0.txt) |
| 7 | 8 | # * * |
| 8 | 9 | # ************************************************************************** */ |
| | 10 | # /* This file has been rewritten in 2010 to fix ticket #4400 */ |
| 9 | 11 | # |
| 10 | 12 | # /* See http://www.boost.org for most recent version. */ |
| 11 | 13 | # |
| … |
… |
|
| 14 | 16 | # |
| 15 | 17 | # include <boost/preprocessor/arithmetic/inc.hpp> |
| 16 | 18 | # include <boost/preprocessor/config/config.hpp> |
| | 19 | # include <boost/preprocessor/facilities/empty.hpp> |
| 17 | 20 | # include <boost/preprocessor/seq/first_n.hpp> |
| 18 | | # include <boost/preprocessor/seq/rest_n.hpp> |
| | 21 | # include <boost/preprocessor/seq/detail/split.hpp> |
| | 22 | # include <boost/preprocessor/tuple/elem.hpp> |
| 19 | 23 | # |
| 20 | 24 | # /* BOOST_PP_SEQ_REPLACE */ |
| 21 | 25 | # |
| 22 | 26 | # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG() |
| 23 | | # define BOOST_PP_SEQ_REPLACE(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N(BOOST_PP_INC(i), seq) |
| | 27 | # define BOOST_PP_SEQ_REPLACE(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N_PLUS_1(i, seq) |
| | 28 | # define BOOST_PP_SEQ_REST_N_PLUS_1(n, seq) BOOST_PP_TUPLE_ELEM(2, 1, BOOST_PP_SEQ_SPLIT(BOOST_PP_INC(n), seq BOOST_PP_EMPTY))() |
| 24 | 29 | # else |
| 25 | 30 | # define BOOST_PP_SEQ_REPLACE(seq, i, elem) BOOST_PP_SEQ_REPLACE_I(seq, i, elem) |
| 26 | | # define BOOST_PP_SEQ_REPLACE_I(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N(BOOST_PP_INC(i), seq) |
| | 31 | # define BOOST_PP_SEQ_REPLACE_I(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N_PLUS_1(i, seq) |
| | 32 | # define BOOST_PP_SEQ_REST_N_PLUS_1(n, seq) BOOST_PP_SEQ_REST_N_PLUS_1_I(n, seq) |
| | 33 | # define BOOST_PP_SEQ_REST_N_PLUS_1_I(n, seq) BOOST_PP_TUPLE_ELEM(2, 1, BOOST_PP_SEQ_SPLIT(BOOST_PP_INC(n), seq BOOST_PP_EMPTY))() |
| 27 | 34 | # endif |
| 28 | 35 | # |
| | 36 | # |
| 29 | 37 | # endif |