diff --git a/src/box2d.cpp b/src/box2d.cpp index 3ce491153..483e9342b 100644 --- a/src/box2d.cpp +++ b/src/box2d.cpp @@ -319,12 +319,13 @@ void box2d::pad(T padding) template inline bool box2d::from_string(std::string const& str) { + using boost::spirit::qi::lit; using boost::spirit::qi::double_; using boost::spirit::ascii::space; bool r = boost::spirit::qi::phrase_parse(str.begin(), str.end(), - double_ >> ',' >> double_ >> ',' - >> double_ >> ',' >> double_, + double_ >> -lit(',') >> double_ >> -lit(',') + >> double_ >> -lit(',') >> double_, space, *this); return r;