-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sorry, this is probably a beginner question, but I'm stuck on it for
quite some time.
I'm trying to write a small string like parser in which the size of
the string is first given. Some thing like:
int_ >> repeat(_1)[ char_ ]
But I cannot figure out the right way of doing this.
The natural:
const bool result = boost::spirit::qi::parse(it,str.end(),int_ >>
repeat(_1)[ char_ ]);
fails to compile (and I tried many variations of val, etc) with no
success. If I replace _1 by 10, everything works fine.
Another question is that of the associated attribute. From the
documentation, I would have expected it to be:
typedef std::pair