From 946a93164a4fff836038bf0afa56f2e17db26dee Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 3 Sep 2002 18:23:13 +0000 Subject: [PATCH] Remove colliding "MAX" macro [SVN r15147] --- include/boost/python/detail/type_list_utils.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/include/boost/python/detail/type_list_utils.hpp b/include/boost/python/detail/type_list_utils.hpp index a9352850..026fd92f 100644 --- a/include/boost/python/detail/type_list_utils.hpp +++ b/include/boost/python/detail/type_list_utils.hpp @@ -72,12 +72,11 @@ namespace boost { namespace python { namespace detail { #else // defined(BOOST_PP_IS_ITERATING) # define N BOOST_PP_ITERATION() -# define MAX BOOST_PYTHON_MAX_ARITY -# if (N < MAX-1) +# if (N < BOOST_PYTHON_MAX_ARITY-1) - template - struct type_at > + template + struct type_at > { typedef BOOST_PP_CAT(A, N) type; }; @@ -88,7 +87,7 @@ namespace boost { namespace python { namespace detail { // typedef boost::mpl::type_list sequence; // }; -# if (N > 0) +# if (N > 0) // template // struct pop_front > @@ -102,7 +101,7 @@ namespace boost { namespace python { namespace detail { // typedef boost::mpl::type_list sequence; // }; -# endif +# endif # endif template @@ -112,6 +111,5 @@ namespace boost { namespace python { namespace detail { }; # undef N -# undef MAX #endif // !defined(BOOST_PP_IS_ITERATING)