Ticket #2377: proto.patch

File proto.patch, 1.3 KB (added by Daniel James, 14 years ago)
  • boost/proto/expr.hpp

     
    146146
    147147    #endif // BOOST_PROTO_EXPR_HPP_EAN_04_01_2005
    148148
    149 #elif BOOST_PP_ITERATION_DEPTH() == 1
     149// For gcc 4.4 compatability, we must include the
     150// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
     151#else // BOOST_PP_IS_ITERATING
     152#if BOOST_PP_ITERATION_DEPTH() == 1
    150153
    151154    #define ARG_COUNT BOOST_PP_MAX(1, BOOST_PP_ITERATION())
    152155    #define IS_TERMINAL 0 == BOOST_PP_ITERATION()
     
    477480
    478481    #undef N
    479482
     483#endif // BOOST_PP_ITERATION_DEPTH()
    480484#endif
  • boost/xpressive/proto/expr.hpp

     
    134134
    135135    #endif // BOOST_PROTO_EXPR_HPP_EAN_04_01_2005
    136136
    137 #elif BOOST_PP_ITERATION_DEPTH() == 1
     137// For gcc 4.4 compatability, we must include the
     138// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
     139#else // BOOST_PP_IS_ITERATING
     140#if BOOST_PP_ITERATION_DEPTH() == 1
    138141
    139142    #define ARG_COUNT BOOST_PP_MAX(1, BOOST_PP_ITERATION())
    140143    #define IS_TERMINAL 0 == BOOST_PP_ITERATION()
     
    404407
    405408    #undef N
    406409
     410#endif // BOOST_PP_ITERATION_DEPTH()
    407411#endif