[antlr-interest] Missing operator==() in C++?

Martin Probst mail at martin-probst.com
Sun Mar 6 04:21:13 PST 2005


Hi,
we have seen a similar behaviour with an old HP-UX compiler. It didn't
pick up the operator+ on tokens. We were able to work around that by
explicitly calling operator+. Did you try to replace
>       RefTreeNode traverse_AST_in = (_t == ASTNULL) ?
> RefTreeNode(antlr::nullAST) : _t;
with
>	RefTreeNode traverse_AST_in = (_t.operator==(ASTNULL)) ?
> RefTreeNode(antlr::nullAST) : _t;
?

It's actually quite strange but that helped us.

Regards,
Martin



More information about the antlr-interest mailing list