Boost logo

Boost :

Subject: Re: [boost] Checking interest in std::get for PODs
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2016-06-03 16:05:16


Le 03/06/2016 à 21:50, Vicente J. Botet Escriba a écrit :
> Le 03/06/2016 à 08:27, Antony Polukhin a écrit :
>> Hi,
>>
>> 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
>
> I like the pod_ops namespace with comparison and streaming. I believe
> that it will be worth adding them on the global namespace subject to
> some specific trait xxx::pod_equality_comparable,
> xxx::pod_less_than_comparable, xxx::pod_streamable. The user would
> need just to specialize these traits to enable the operators.
>
> Can a Boost library add functions in the global namespace subject to
> SFINAE on some specific condition?
BTW, what about having those operator on a tuple_ops namespace appliable
to tuple-like access?

Vicente


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