Re: Bug in real_parser
peterkochlarsen <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Dear sehe, I could not make Nabble quote your post, so you get a reply without quoting. First, obviously the code-snippet provided was not supposed to be a self-containing compilable program, just a way to convey an idea. In creating the snippet I misnamed a variable, but I believe anyone would have understood the idea anyway. Secondly, your code compiles perfectly on my system, but the result is different. For "045.000W" it prints 45, for "045.000E" it prints 45000. I do not understand the difference. On Coliru I get the same result. Lastly, I expected both my examples to parse (leaving "E" or "W" for the next part of my grammar), but I did not expect "045.000" to become 45000. ;-) /Peter -- View this message in context: http://boost.2283326.n4.nabble.com/Bug-in-real-parser-tp4688120p4688142.html Sent from the spirit-general mailing list archive at Nabble.com. ------------------------------------------------------------------------------