|
Boost Users : |
Subject: [Boost-users] [proto] another const issue
From: Maurizio Vitale (maurizio.vitale_at_[hidden])
Date: 2009-08-25 13:03:00
Eric, this may or may not be related to the other problem w/ the
assignment operator.
In my application eventually I'll want to allow literals of builtin
constants on the right hand side of the assignment, but not on the left
hand side. So given:
my_int my_i; // a proto terminal
int i;
The following should happen:
my_i = 5; // OK
(i,my_i) = my_i; // OK
(5,my_i) = my_i; // NOT OK
For that I have a grammar for the left hand side and one for the right
hand side. In the attached file, the grammar for the left hand side
doesn't match and I'm not sure why.
What I'm doing wrong?
TIA,
Maurizio
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net