X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=boost%2Fboost%2Fpreprocessor%2Fenum_params_with_a_default.hpp;h=173bf82c35e567c7a49689460ea80c1ed88d6c48;hb=7cdb5279835b7ae9fe0fe0372f9fed7524f39da6;hp=cb1629d9d7e4947add8877dbd0d63c9721909f57;hpb=4ec4af2205fd20359fb0a60ac3b3a117a2675cb0;p=lyx.git diff --git a/boost/boost/preprocessor/enum_params_with_a_default.hpp b/boost/boost/preprocessor/enum_params_with_a_default.hpp index cb1629d9d7..173bf82c35 100644 --- a/boost/boost/preprocessor/enum_params_with_a_default.hpp +++ b/boost/boost/preprocessor/enum_params_with_a_default.hpp @@ -1,55 +1,18 @@ -#ifndef BOOST_PREPROCESSOR_ENUM_PARAMS_WITH_A_DEFAULT_HPP -#define BOOST_PREPROCESSOR_ENUM_PARAMS_WITH_A_DEFAULT_HPP - -/* Copyright (C) 2001 - * Housemarque Oy - * http://www.housemarque.com - * - * 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 as to its suitability for any purpose. - * - * See http://www.boost.org for most recent version. - */ - -#include -#include - -/**

Generates a comma separated list of parameters with a default.

- -

In other words, expands to the sequence:

- -
-BOOST_PP_CAT(PARAM,0) = DEFAULT,
-BOOST_PP_CAT(PARAM,1) = DEFAULT,
-...,
-BOOST_PP_CAT(PARAM,BOOST_PP_DEC(COUNT)) = DEFAULT
-
- -

For example,

- -
-BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(3,x,y)
-
- -

expands to:

- -
-x0 = y, x1 = y, x2 = y
-
- -

Uses

- - -

Test

- -*/ -#define BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(COUNT,PARAM,DEFAULT) BOOST_PP_ENUM(COUNT,BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT_F,(PARAM,DEFAULT)) - -#define BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT_F(I,PD) BOOST_PP_CAT(BOOST_PP_TUPLE_ELEM(2,0,PD),I)=BOOST_PP_TUPLE_ELEM(2,1,PD) -#endif +# /* ************************************************************************** +# * * +# * (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. */ +# +# ifndef BOOST_PREPROCESSOR_ENUM_PARAMS_WITH_A_DEFAULT_HPP +# define BOOST_PREPROCESSOR_ENUM_PARAMS_WITH_A_DEFAULT_HPP +# +# include +# +# endif