qi::omit works with boost >=1.46 but not <=1.45 - refs #1074

This commit is contained in:
Dane Springmeyer 2012-02-13 11:47:55 -08:00
parent c74a6390ca
commit cafb98ed88

View file

@ -230,7 +230,7 @@ struct expression_grammar : qi::grammar<Iterator, expr_node(), space_type>
("\\\'", '\'')("\\\"", '\"')
;
#if BOOST_VERSION > 104200
#if BOOST_VERSION > 104500
quote_char %= char_('\'') | char_('"');
ustring %= omit[quote_char[_a = _1]]
>> *(unesc_char | "\\x" >> hex | (char_ - lit(_a)))