
Hello, Our own regressions with parsers built on spirit fails with boost 1.34.0(haven't tried 1.34.1 yet). Before 1.34, the following worked. #include <boost/spirit/core.hpp> void main() { using namespace boost::spirit; const char *text = "1 "; assert(parse(text, int_p, space_p).full); } Now, it seems that the trailing space after the '1' in text is not consumed by the space_p, and parse does not return a full parse in parse_info. Is this the intentional behaviour and we should update our rules to take care of any trailing white space? Best regards, Christian

I just found this in trac now. Please ignore the posting, sorry for the noise. / Christian On 15/08/07, Christian Holmquist <c.holmquist@gmail.com> wrote:
Hello,
Our own regressions with parsers built on spirit fails with boost 1.34.0(haven't tried 1.34.1 yet). Before 1.34, the following worked.
#include <boost/spirit/core.hpp> void main() { using namespace boost::spirit; const char *text = "1 "; assert(parse(text, int_p, space_p).full); }
Now, it seems that the trailing space after the '1' in text is not consumed by the space_p, and parse does not return a full parse in parse_info.
Is this the intentional behaviour and we should update our rules to take care of any trailing white space?
Best regards,
Christian
participants (1)
-
Christian Holmquist