Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2002-10-13 01:35:25


Joel de Guzman wrote:

> A solution I have in mind is make the rule class accept a
> bool template parameter ... bool copyable = false>. When one
> needs to deal with dynamic parsing which will involve the
> manipulation of rules, placing them in stacks, maps, vectors etc.,
> then she can set it to true. All the rest will be happy with this
> set to false as default.

Seem to solve all problems at once: no confusion anymore for the average
Spirit user and the possibility to fine tune things for special cases.
This BTW reflects the situation, we had in Spirit V1.3, there the rule<>
had the 'non-confusing' semantics and the copyable_rule<> the sematics,
the rule<> have today. One note though: we need to expose the actual
rule semantics through a typedef to allow for meta tricks.

Regards Hartmut


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