From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-03-02 17:01:55


Andrzej Krzemienski wrote:
> wt., 2 mar 2021 o 16:34 Peter Dimov via Boost <boost_at_[hidden]>
> napisał(a):
>
> > That's true, but Spirit relies on Fusion for the support of
> > user-defined structs, so the straightforward way to make it work on
> > described types is to make Fusion recognize them.
> >
>
> Or have Spirit perform a check: if `describe::members` is found use it,
> otherwise fall back to Boost.Fusion.

That's possible, but it would require patching all uses of e.g. fusion::at_c
in Spirit. It's easier to only add this support to fusion::at_c, which would
not only take care of Spirit automatically, but of all other clients of
Fusion.