Opened 13 years ago
Closed 13 years ago
#3087 closed Bugs (fixed)
calc_with_variables shouldn't allow vari instead of var i
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | Boost 1.40.0 | Component: | spirit |
Version: | Boost 1.39.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
I think the example should show how to disallow vari instead of var i.
boost_1_39_0\libs\spirit\classic\example\fundamental\more_calculators\calc_with_variables.cpp:
vari
Parsing succeeded
vari Warning. You are attempting to re-declare a var.
Parsing failed stopped at: ": vari"
i = 5 push 5 assigning
Parsing succeeded
Change History (2)
comment:1 by , 13 years ago
Component: | None → spirit |
---|---|
Owner: | set to |
Severity: | Problem → Cosmetic |
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed. This may not be the best example for such, but it will do. Anyway, Spirit2 has better examples for this.