Boost Spirit 2.4.2: Cannot extract a string

后端 未结 1 713
悲&欢浪女
悲&欢浪女 2021-02-11 05:21

Following the resolved question Boost Spirit: Error C2664, Cannot convert 'const boost::phoenix::actor' to 'char' , I have another question:

相关标签:
1条回答
  • 2021-02-11 06:04

    The answer is very simple: 2 structs js_single_quoted_str and js_double_quoted_str must be redefined as the following to make the parser rock:

    qi::rule<Iterator, std::string(), ascii::space_type> js_single_quoted_str;
    qi::rule<Iterator, std::string(), ascii::space_type> js_double_quoted_str;
    
    0 讨论(0)
提交回复
热议问题