Re: [boost] Checking interest in std::get for PODs
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 enums?
2016-06-04 16:58 GMT+03:00 Bjorn Reese
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 enums?
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. -- Best regards, Antony Polukhin
Le 04/06/2016 à 20:06, Antony Polukhin a écrit :
2016-06-04 16:58 GMT+03:00 Bjorn Reese
: 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 enums?
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. Vicente
participants (3)
-
Antony Polukhin
-
Bjorn Reese
-
Vicente J. Botet Escriba