Index: boost/lambda/detail/arity_code.hpp =================================================================== --- boost/lambda/detail/arity_code.hpp (revision 41287) +++ boost/lambda/detail/arity_code.hpp (working copy) @@ -46,8 +46,11 @@ template struct get_arity { - BOOST_STATIC_CONSTANT(int, value = detail::get_arity_::type>::type>::value); + // Workaround for MSVC8 SP1 ICE. + typedef typename boost::remove_cv::type>::type raw_type; + BOOST_STATIC_CONSTANT(int, value = detail::get_arity_::value); + }; namespace detail {