2 Mar
2021
2 Mar
'21
5:01 p.m.
Andrzej Krzemienski wrote:
wt., 2 mar 2021 o 16:34 Peter Dimov via Boost
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.