相关疑难解决方法(0)

升压::精神::气

请考虑以下代码:(Boost.Spirit 2.5.1)

qi::parse(str.begin(), str.end(), (+qi::alpha)[[](const string& s){cout << s<< '\n';}]
                                    >> (*(qi::char_(',') | qi::char_('\'')))
                                    >> qi::uint_[[](int integer){cout << integer << '\n';}]);
Run Code Online (Sandbox Code Playgroud)

[[](int integer){cout << integer << '\n';}]作品,但类似的代码+qi::alpha没有.

我该如何更正代码?

c++ boost boost-spirit c++11

4
推荐指数
2
解决办法
1827
查看次数

标签 统计

boost ×1

boost-spirit ×1

c++ ×1

c++11 ×1