Hans Åberg wrote: > Perhaps an entirely static approach can be achieved by the type > being a part of the token_type. On the other hand, the use is for > dynamic token lookup, so it may be too much of an effort for that.
Not sure what you mean with "part of", but with Bison's variant the semantic type is determined by token_type, if that's what you mean. > Personally, I am already at C++17, so I have no reason for using a > simpler variant. Having the type stored just adds a size_t, and > that is used a lot in other circumstances, so no overhead to worry > about. Well, we had this discussion recently (as far as Bison is concerned). Regards, Frank
