Index: boost/variant/detail/substitute.hpp =================================================================== --- boost/variant/detail/substitute.hpp (revision 49077) +++ boost/variant/detail/substitute.hpp (working copy) @@ -151,7 +151,10 @@ ///// 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) #if i > 0 @@ -228,4 +231,5 @@ #endif // i #undef i +#endif // BOOST_PP_ITERATION_DEPTH() #endif // BOOST_PP_IS_ITERATING