Boost logo

Boost :

Subject: Re: [boost] Library addition request
From: Damien Buhl (damien.buhl_at_[hidden])
Date: 2016-06-13 05:45:44


On 11/06/2016 20:17, Gerrit Daniels wrote:
> Hello,
>
> I've written a library that implements automatic serialization of user
> defined types. You can find it here: https://github.com/gerritdaniels/ctrl.
> I was wondering if this is something that could be added to the boost
> library.
>
> Kind regards,
>
>
> Gerrit Daniels.
>
Hello,

I just looked briefly to the README of your library, and what I see is
that most of the advantages of the library comes from the reflection
facilities you've built.
But I can be wrong, as I didn't looked more than that..

I think that yet-another Boost.Serialization doesn't make that much
sense, however I think that a Reflection library, which generates easily
traits about structs/classes to iterate upon, get information about name
and so on would make sense.

Currently in Boost.Fusion we need a bit of that to adapt structures and
classes to tuples, and therefore we generate in the same way as your
library some meta information like struct_member_name. But Boost.Fusion
is not intended to be a reflection library, so it won't go further than
that.

What would be awesome in my opinion, from a library like yours, would be
to reflect type information and get the reflected information be
compatible with current libraries which leverage/could leverage such
information like: Boost.Spirit, Boost.Serialization, Boost.Fusion,
Boost.Hana...

It's just my 2cent and my opinion, I think there was already effort for
a reflection library, but I think the effort stopped.

I made some toy implementation based on metaparse as well to generate
type traits for structs by parsing their declarations, so I would like
to see a good reflection library happen.

Cheers,

--
Damien Buhl
alias daminetreg

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