Subject: Re: [boost] Checking interest in std::get for PODs
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2016-06-04 16:23:23
Le 04/06/2016 à 20:06, Antony Polukhin a écrit :
> 2016-06-04 16:58 GMT+03:00 Bjorn Reese <breese_at_[hidden]>:
>> On 06/03/2016 08:27 AM, Antony Polukhin wrote:
>> There's a C++14 library that is able to do basic reflections for PODs
>>> without any macro magic or markup: https://github.com/apolukhin/magic_get
>> Could the "Enums will be returned as their underlying type" limitation
>> be partially worked around by allowing users to register their own
> Yes, that's possible. But I was trying to avoid that functionality. If
> users will be able to register their own types, then the library will
> become just one of many libraries where you have to manually describe your
> structures using macros/traits.
I don't see any problem in registering a type using traits. Or using the
macro used by the library itself.
Types that are not registered cannot be found. This is the same that we
have for Boost.TypeOf.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk