boost 1.42 compatibility - fixes #1145
This commit is contained in:
parent
910ea2655d
commit
e4ae1f660d
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue