Boost logo

Boost :

From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2021-03-02 16:22:26


wt., 2 mar 2021 o 16:34 Peter Dimov via Boost <boost_at_[hidden]>
napisał(a):

> Andrzej Krzemienski wrote:
> > wt., 2 mar 2021 o 15:05 Edward Diener via Boost <boost_at_[hidden]>
> > napisał(a):
> >
> > > Boost.Fusion/Boost.Spirit are C++03 libraries while Describe is a
> > > C++14 library. So while Describe might be capable of replacing the
> > > BOOST_FUSION_ADAPT_STRUCT interface in Boost.Fusion I would imagine
> > > that Boost.Fusion/Boost.Spirit might have to upgrade their minimum C++
> > > level to C++14 in order to do so.
> > >
> >
> > Sorry, I wasn't clear. BoostSpirit comes with the x3 variant which
> already
> > requires c++14:
> > https://www.boost.org/doc/libs/1_75_0/libs/spirit/doc/x3/html/index.html
> > I meant this one only.
>
> 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.

Regards,
&rzej;

> That's ifdefable and should be doable, but I don't have a proof at this
> time. :-)
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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