mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-05 15:54:39 +02:00
Merge the mpl fixes for gcc 4.4. (But not the python ones). Refs #2069.
Merged revisions 48960 via svnmerge from https://svn.boost.org/svn/boost/trunk ........ r48960 | rwgk | 2008-09-25 05:49:24 +0100 (Thu, 25 Sep 2008) | 1 line boost/python, boost/mpl: gcc 4.4 compatibility (see http://svn.boost.org/trac/boost/ticket/2069) ........ [SVN r49257]
This commit is contained in:
@@ -135,7 +135,10 @@ struct apply
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
|
|
||||||
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
@@ -222,4 +225,5 @@ struct apply_chooser<i_>
|
|||||||
|
|
||||||
# undef i_
|
# undef i_
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -78,7 +78,10 @@ namespace boost { namespace mpl {
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
|
|
||||||
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
@@ -197,4 +200,5 @@ struct BOOST_PP_CAT(apply_wrap_impl,i_)<
|
|||||||
|
|
||||||
# undef j_
|
# undef j_
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -79,7 +79,10 @@ struct advance_backward
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
#define i_ BOOST_PP_FRAME_ITERATION(1)
|
#define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
@@ -121,4 +124,5 @@ struct advance_backward< BOOST_PP_FRAME_ITERATION(1) >
|
|||||||
# undef AUX778076_ITER_1
|
# undef AUX778076_ITER_1
|
||||||
# undef AUX778076_ITER_0
|
# undef AUX778076_ITER_0
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -79,7 +79,10 @@ struct advance_forward
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
#define i_ BOOST_PP_FRAME_ITERATION(1)
|
#define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
@@ -120,4 +123,5 @@ struct advance_forward< BOOST_PP_FRAME_ITERATION(1) >
|
|||||||
# undef AUX778076_ITER_1
|
# undef AUX778076_ITER_1
|
||||||
# undef AUX778076_ITER_0
|
# undef AUX778076_ITER_0
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -227,7 +227,10 @@ BOOST_MPL_AUX_NA_SPEC2(2, 3, lambda)
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
#define i_ BOOST_PP_FRAME_ITERATION(1)
|
#define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
#if i_ > 0
|
#if i_ > 0
|
||||||
@@ -347,4 +350,5 @@ struct lambda<
|
|||||||
};
|
};
|
||||||
|
|
||||||
#undef i_
|
#undef i_
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -287,7 +287,10 @@ BOOST_MPL_AUX_NA_SPEC2(2, AUX778076_OP_ARITY, AUX778076_OP_NAME)
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
|
|
||||||
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
@@ -308,4 +311,5 @@ struct AUX778076_OP_NAME<BOOST_MPL_PP_PARTIAL_SPEC_PARAMS(i_, N, na)>
|
|||||||
|
|
||||||
# undef i_
|
# undef i_
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -361,7 +361,10 @@ BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
|
|
||||||
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
@@ -544,4 +547,5 @@ struct bind_chooser<i_>
|
|||||||
# endif
|
# endif
|
||||||
# undef j_
|
# undef j_
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
@@ -111,7 +111,10 @@ BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(1, unpack_args)
|
|||||||
|
|
||||||
///// iteration, depth == 1
|
///// iteration, depth == 1
|
||||||
|
|
||||||
#elif BOOST_PP_ITERATION_DEPTH() == 1
|
// For gcc 4.4 compatability, we must include the
|
||||||
|
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
|
||||||
|
#else // BOOST_PP_IS_ITERATING
|
||||||
|
#if BOOST_PP_ITERATION_DEPTH() == 1
|
||||||
|
|
||||||
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
# define i_ BOOST_PP_FRAME_ITERATION(1)
|
||||||
|
|
||||||
@@ -143,4 +146,5 @@ template<> struct unpack_args_impl<i_>
|
|||||||
|
|
||||||
# undef i_
|
# undef i_
|
||||||
|
|
||||||
|
#endif // BOOST_PP_ITERATION_DEPTH()
|
||||||
#endif // BOOST_PP_IS_ITERATING
|
#endif // BOOST_PP_IS_ITERATING
|
||||||
|
Reference in New Issue
Block a user