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: olafvdspek@… 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 anonymous, 13 years ago

Component: Nonespirit
Owner: set to Joel de Guzman
Severity: ProblemCosmetic

comment:2 by Joel de Guzman, 13 years ago

Resolution: fixed
Status: newclosed

Fixed. This may not be the best example for such, but it will do. Anyway, Spirit2 has better examples for this.

Note: See TracTickets for help on using tickets.