Ticket #2069: mpl.patch

File mpl.patch, 3.9 KB (added by Daniel James, 14 years ago)

A better patch for this problem.

  • boost/mpl/aux_/numeric_op.hpp

     
    287287
    288288///// iteration, depth == 1
    289289
    290 #elif BOOST_PP_ITERATION_DEPTH() == 1
     290#else
     291#if BOOST_PP_ITERATION_DEPTH() == 1
    291292
    292293#   define i_ BOOST_PP_FRAME_ITERATION(1)
    293294
     
    308309
    309310#   undef i_
    310311
     312#endif // BOOST_PP_ITERATION_DEPTH()
    311313#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/aux_/advance_backward.hpp

     
    7979
    8080///// iteration, depth == 1
    8181
    82 #elif BOOST_PP_ITERATION_DEPTH() == 1
     82#else
     83#if BOOST_PP_ITERATION_DEPTH() == 1
    8384#define i_ BOOST_PP_FRAME_ITERATION(1)
    8485
    8586template<>
     
    121122#   undef AUX778076_ITER_1
    122123#   undef AUX778076_ITER_0
    123124
     125#endif // BOOST_PP_ITERATION_DEPTH()
    124126#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/aux_/full_lambda.hpp

     
    227227
    228228///// iteration, depth == 1
    229229
    230 #elif BOOST_PP_ITERATION_DEPTH() == 1
     230#else
     231#if BOOST_PP_ITERATION_DEPTH() == 1
    231232#define i_ BOOST_PP_FRAME_ITERATION(1)
    232233
    233234#if i_ > 0
     
    347348};
    348349
    349350#undef i_
     351#endif // BOOST_PP_ITERATION_DEPTH()
    350352#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/aux_/advance_forward.hpp

     
    7979
    8080///// iteration, depth == 1
    8181
    82 #elif BOOST_PP_ITERATION_DEPTH() == 1
     82#else
     83#if BOOST_PP_ITERATION_DEPTH() == 1
     84
    8385#define i_ BOOST_PP_FRAME_ITERATION(1)
    8486
    8587template<>
     
    120122#   undef AUX778076_ITER_1
    121123#   undef AUX778076_ITER_0
    122124
     125#endif // BOOST_PP_ITERATION_DEPTH()
    123126#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/unpack_args.hpp

     
    111111
    112112///// iteration, depth == 1
    113113
    114 #elif BOOST_PP_ITERATION_DEPTH() == 1
     114#else
     115#if BOOST_PP_ITERATION_DEPTH() == 1
    115116
    116117#   define i_ BOOST_PP_FRAME_ITERATION(1)
    117118
     
    143144
    144145#   undef i_
    145146
     147#endif // BOOST_PP_ITERATION_DEPTH()
    146148#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/bind.hpp

     
    361361
    362362///// iteration, depth == 1
    363363
    364 #elif BOOST_PP_ITERATION_DEPTH() == 1
     364#else
     365#if BOOST_PP_ITERATION_DEPTH() == 1
    365366
    366367#   define i_ BOOST_PP_FRAME_ITERATION(1)
    367368
     
    544545#   endif
    545546#   undef j_
    546547
     548#endif // BOOST_PP_ITERATION_DEPTH()
    547549#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/apply.hpp

     
    135135
    136136///// iteration, depth == 1
    137137
    138 #elif BOOST_PP_ITERATION_DEPTH() == 1
     138#else
     139#if BOOST_PP_ITERATION_DEPTH() == 1
    139140
    140141#   define i_ BOOST_PP_FRAME_ITERATION(1)
    141142
     
    222223
    223224#   undef i_
    224225
     226#endif // BOOST_PP_ITERATION_DEPTH()
    225227#endif // BOOST_PP_IS_ITERATING
  • boost/mpl/apply_wrap.hpp

     
    7878
    7979///// iteration, depth == 1
    8080
    81 #elif BOOST_PP_ITERATION_DEPTH() == 1
     81#else
     82#if BOOST_PP_ITERATION_DEPTH() == 1
    8283
    8384#   define i_ BOOST_PP_FRAME_ITERATION(1)
    8485
     
    197198
    198199#   undef j_
    199200
     201#endif // BOOST_PP_ITERATION_DEPTH()
    200202#endif // BOOST_PP_IS_ITERATING