boost 1.42 compatibility - fixes #1145

This commit is contained in:
Dane Springmeyer 2012-03-23 19:09:38 -07:00
parent 910ea2655d
commit e4ae1f660d

View file

@ -38,14 +38,18 @@ bool parse_dasharray(Iterator first, Iterator last, std::vector<double>& dasharr
using qi::_1;
using qi::lit;
using qi::char_;
#if BOOST_VERSION > 104200
using qi::no_skip;
#else
using qi::lexeme;
#endif
using phoenix::push_back;
// SVG
// dasharray ::= (length | percentage) (comma-wsp dasharray)?
// no support for 'percentage' as viewport is unknown at load_map
//
bool r = phrase_parse(first, last,
(double_[push_back(phoenix::ref(dasharray), _1)] % no_skip[char_(", ")] | lit("none")),
(double_[push_back(phoenix::ref(dasharray), _1)] % lexeme[char_(", ")] | lit("none")),
qi::ascii::space);
if (first != last)