2002-10-13 06:11:19 +00:00
|
|
|
# /* **************************************************************************
|
|
|
|
# * *
|
|
|
|
# * (C) Copyright Paul Mensonides 2002. Permission to copy, use, *
|
|
|
|
# * modify, sell, and distribute this software is granted provided *
|
|
|
|
# * this copyright notice appears in all copies. This software is *
|
|
|
|
# * provided "as is" without express or implied warranty, and with *
|
|
|
|
# * no claim at to its suitability for any purpose. *
|
|
|
|
# * *
|
|
|
|
# ************************************************************************** */
|
|
|
|
#
|
|
|
|
# /* See http://www.boost.org for most recent version. */
|
|
|
|
#
|
2002-11-07 23:16:43 +00:00
|
|
|
# ifndef BOOST_PREPROCESSOR_SEQ_REPLACE_HPP
|
|
|
|
# define BOOST_PREPROCESSOR_SEQ_REPLACE_HPP
|
2002-10-13 06:11:19 +00:00
|
|
|
#
|
2002-11-07 23:16:43 +00:00
|
|
|
# include <boost/preprocessor/arithmetic/inc.hpp>
|
2002-10-13 06:11:19 +00:00
|
|
|
# include <boost/preprocessor/config/config.hpp>
|
2002-11-07 23:16:43 +00:00
|
|
|
# include <boost/preprocessor/seq/first_n.hpp>
|
|
|
|
# include <boost/preprocessor/seq/rest_n.hpp>
|
2002-10-13 06:11:19 +00:00
|
|
|
#
|
2002-11-07 23:16:43 +00:00
|
|
|
# /* BOOST_PP_SEQ_REPLACE */
|
2002-10-13 06:11:19 +00:00
|
|
|
#
|
|
|
|
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
|
2002-11-07 23:16:43 +00:00
|
|
|
# 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)
|
2002-10-13 06:11:19 +00:00
|
|
|
# else
|
2002-11-07 23:16:43 +00:00
|
|
|
# define BOOST_PP_SEQ_REPLACE(seq, i, elem) BOOST_PP_SEQ_REPLACE_I(seq, i, elem)
|
|
|
|
# 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)
|
2002-10-13 06:11:19 +00:00
|
|
|
# endif
|
|
|
|
#
|
|
|
|
# endif
|