P
Peter Ammon
As we know, due to C++'s "longest match" rule, the >> token causes
headaches when working with nested templates, e.g.
vector<vector<int>>
will not parse correctly without inserting a space between the two >
signs. Why have a >> token at all? Why not have > be the token, and
handle >> in the grammar as two > tokens?
This would permit code like 3 > > 1, but that seems harmless to me.
headaches when working with nested templates, e.g.
vector<vector<int>>
will not parse correctly without inserting a space between the two >
signs. Why have a >> token at all? Why not have > be the token, and
handle >> in the grammar as two > tokens?
This would permit code like 3 > > 1, but that seems harmless to me.