Am 15.06.2016 7:00 nachm. schrieb "Gerrit Daniels" : Based on the feedback I've gotten I created a new implementation that
separates the reflection information from the serialization. It can be
found at: https://github.com/gerritdaniels/reflection. The basic usage is: class DerivedClass : public SimpleClass { REFLECTION(DerivedClass,
((public, SimpleClass))
((private, int, count))
((protected, std::string, name))
) REFLECTED_SERIALIZATION()
}; Here the REFLECTED_SERIALIZATION call generates a serialize method that is
compatible with boost::serialization. Wouldn't it be possible to have a generic implementation for serialization
that's SFINAEed properly? If any further meta information needs to be generated by the REFLECTION
macro, just let me know. On Mon, Jun 13, 2016 at 9:55 PM, Damien Buhl wrote: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0194r1.html IIUC, that proposal is progressing through the standards committee,
and
may
move to the working paper (i.e. next) stage as soon as next week at On 13/06/2016 20:40, Beman Dawes wrote:
the Oulu meeting. Thanks that you are telling about it, indeed I should have told that
such a library would be better if it produced traits that respects API of the reflection proposal. Do you know if there is already an implementation of the proposal,
in
terms of compiler extension, or even as a macro-based reflection
type
traits generator ? https://github.com/matus-chochlik/clang/tree/mirror-reflection I had to ask; turns out that link got dropped from the R1 version of the
the paper. Axel reports that P0385R0 now contains the design rationale +
background
info with the link to the implementation, and that the "clang
implementation is not complete but a start; Matus hopes to make more
progress over summer." See
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0385r0.pdf --Beman Thank you very much. I'll try out the experimental implementation,
that's pretty interesting. I'll check if I can easily bring Boost.Fusion to use the informations
provided by the
reflexpr header. I wonder if Daniel Gerrit is interested in generating metaobjects from
his library ? _______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost _______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost