Ticket #1541: boost.parameter.diff

File boost.parameter.diff, 5.6 KB (added by Jens Seidel <jensseidel@…>, 15 years ago)

Another patch

  • parameter/python.hpp

     
    6363          0,                                /* tp_as_buffer   */
    6464          Py_TPFLAGS_DEFAULT,               /* tp_flags       */
    6565          0,                                /* tp_doc         */
     66          0,                                /* tp_traverse */
     67          0,                                /* tp_clear */
     68          0,                                /* tp_richcompare */
     69          0,                                /* tp_weaklistoffset */
     70          0,                                /* tp_iter */
     71          0,                                /* tp_iternext */
     72          0,                                /* tp_methods */
     73          0,                                /* tp_members */
     74          0,                                /* tp_getset */
     75          0,                                /* tp_base */
     76          0,                                /* tp_dict */
     77          0,                                /* tp_descr_get */
     78          0,                                /* tp_descr_set */
     79          0,                                /* tp_dictoffset */
     80          0,                                /* tp_init */
     81          0,                                /* tp_alloc */
     82          0,                                /* tp_new */
     83          0,                                /* tp_free */
     84          0,                                /* tp_is_gc */
     85          0,                                /* tp_bases */
     86          0,                                /* tp_mro */
     87          0,                                /* tp_cache */
     88          0,                                /* tp_subclasses */
     89          0,                                /* tp_weaklist */
     90#if PYTHON_API_VERSION >= 1012
     91          0                                 /* tp_del */
     92#endif
    6693      };
    6794
    6895      if (unspecified.ob_type == 0)
  • parameter/macros.hpp

     
    1515#include <boost/preprocessor/repetition/enum_params.hpp>
    1616#include <boost/preprocessor/repetition/enum_binary_params.hpp>
    1717#include <boost/preprocessor/cat.hpp>
     18#include <boost/detail/workaround.hpp>
    1819
    1920#define BOOST_PARAMETER_FUN_TEMPLATE_HEAD1(n) \
    2021    template<BOOST_PP_ENUM_PARAMS(n, class T)>
  • parameter/aux_/cast.hpp

     
    22// subject to the Boost Software License, Version 1.0. (See accompanying
    33// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    44
     5#include <boost/detail/workaround.hpp>
     6
    57#ifndef BOOST_PARAMETER_CAST_060902_HPP
    68# define BOOST_PARAMETER_CAST_060902_HPP
    79
  • parameter/aux_/set.hpp

     
    55#ifndef BOOST_PARAMETER_SET_060912_HPP
    66# define BOOST_PARAMETER_SET_060912_HPP
    77
     8#include <boost/detail/workaround.hpp>
     9
    810# if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) \
    911  && !BOOST_WORKAROUND(__GNUC__, < 3)
    1012#  include <boost/mpl/insert.hpp>
  • parameter/aux_/python/invoker_iterate.hpp

     
    66#include <boost/preprocessor/dec.hpp>
    77#include <boost/preprocessor/repetition/enum_binary_params.hpp>
    88#include <boost/preprocessor/repetition/repeat_from_to.hpp>
     9#include <boost/preprocessor/iteration/iterate.hpp> // BOOST_PP_ITERATION_FLAGS
    910
    1011#define N BOOST_PP_ITERATION()
    1112
     
    2526    >::type BOOST_PP_CAT(arg,n); \
    2627    typedef typename BOOST_PP_CAT(spec,n)::keyword BOOST_PP_CAT(kw,n);
    2728
    28 #if BOOST_PP_ITERATION_FLAGS() == 1
     29#if BOOST_PP_ITERATION_FLAGS() == 0
     30#error "Can this happen?"
     31#elif BOOST_PP_ITERATION_FLAGS() == 1
    2932template <class M, class R, class Args>
    3033struct invoker<N, M, R, Args>
    3134#elif BOOST_PP_ITERATION_FLAGS() == 2
  • parameter/aux_/python/invoker.hpp

     
    88# include <boost/mpl/begin.hpp>
    99# include <boost/mpl/next.hpp>
    1010# include <boost/mpl/deref.hpp>
     11# include <boost/mpl/size.hpp>
    1112# include <boost/parameter/keyword.hpp>
    1213# include <boost/preprocessor/iteration/iterate.hpp>
    1314
  • parameter/aux_/arg_list.hpp

     
    2424#include <boost/type_traits/is_same.hpp>
    2525#include <boost/type_traits/is_base_and_derived.hpp>
    2626#include <boost/preprocessor/repetition/enum_params.hpp>
     27#include <boost/preprocessor/repetition/enum_binary_params.hpp>
    2728#include <boost/preprocessor/facilities/intercept.hpp>
    2829
    2930namespace boost { namespace parameter {
  • parameter/aux_/default.hpp

     
    33// accompanying file LICENSE_1_0.txt or copy at
    44// http://www.boost.org/LICENSE_1_0.txt)
    55
     6#include <boost/detail/workaround.hpp>
     7
    68#ifndef DEFAULT_050329_HPP
    79#define DEFAULT_050329_HPP
    810