Index: boost/spirit/home/lex/lexer/support_functions.hpp =================================================================== --- boost/spirit/home/lex/lexer/support_functions.hpp (revision 84231) +++ boost/spirit/home/lex/lexer/support_functions.hpp (working copy) @@ -47,11 +47,13 @@ template struct result { - typedef typename - remove_const< - typename mpl::at_c::type - >::type - context_type; + typedef + typename remove_reference< + typename remove_const< + typename mpl::at_c::type + >::type + >::type + context_type; typedef typename context_type::base_iterator_type type; };