Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-10-24 05:57:41


On 10/24/2005 04:08 AM, Korcan Hussein wrote:
[snip]
> So yeah this does not gel so well with Spirit, maybe if boost::variant was
> like OCaml's polymorphic variants it would be a more feasible. Still though

I'm unfamiliar with polymorphic variants. Could you please give a brief
explanation or reference? Is it any way related to the topic discussed
here:

   http://groups.google.com/group/comp.std.c++/msg/8a90765a6e61ce82

> this could have it uses in other places where client wouldn't normally add
> new internal (nonterminal) nodes.

Maybe. I guess with a grammar, the user would know all the nonterminal
nodes; hence, this would work, AFAICT. This might be a huge (where
huge refers to number of nonterminals in grammar) variant. Maybe it
could be calculated from the grammar? But then, since it's used
in the grammar ..., maybe that's not possible.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk