boost spirit qi parser failed in release and pass in debug
问题 #include <boost/spirit/include/qi.hpp> #include <string> #include <vector> #include <iterator> #include <algorithm> #include <iostream> using namespace boost::spirit; int main() { std::string s; std::getline(std::cin, s); auto specialtxt = *(qi::char_('-', '.', '_')); auto txt = no_skip[*(qi::char_("a-zA-Z0-9_.\\:$\'-"))]; auto anytxt = *(qi::char_("a-zA-Z0-9_.\\:${}[]+/()-")); qi::rule <std::string::iterator, void(),ascii::space_type> rule2 = txt ('=') >> ('[') >> (']'); auto begin = s.begin