
Hello Boost Users,
I'm now building configuration file parser with Boost.Spirit.
I have a little trouble understanding how this parser builds attribute:
It was supposed to parse strings throwing 'p' letter away.
*((qi::char_ - 'p') | qi::lit('p'))
attribute of qi::lit is Unused.
attribute of (qi::char_ - 'p') is char.
so attribute of ((qi::char_ - 'p') | qi::lit('p')) should be optional<char>
that
is uninitialized optional value when matched against character 'p'
After applying Kleene star it should became vector