pfr
pfr copied to clipboard
std::tuple like methods for user defined types without any macro or boilerplate code
I can't find any function to get the member name, i want to use it in my orm framework, is there some way to got it?
> *test-2 and test-3:* > https://github.com/madmongo1/pfr_review/blob/master/pre-cxx20/test-2.cpp > Seems to produce infinite recursive template expansion The example should not compile, because the nested types are not aggregates. In C++14 it gives...
Reflection of member array types is possible by refining magic_get methods. ## Recursive scheme Here's a scheme for finding an aggregate's member types one at a time: Given an aggregate-initializable...
https://github.com/boostorg/pfr/issues/100
It's for library's developers, to help compile-time debugging. This PR used in https://github.com/boostorg/pfr/issues/100
https://godbolt.org/z/4odnsoKzK I know that PFR dont work with const or reference fields. But why don't we remove this restriction in C++17 mode? I suppose that structured binding already has all...
In C++ we can't make specialization for type alias, but for structure can. This PR will make https://github.com/boostorg/pfr/issues/100 possible to implement.
As we know, `std::get` overloads for a `std::tuple` can't return values, it always returns a reference(https://en.cppreference.com/w/cpp/utility/tuple/get). This library shows itself as "tuple-like interface" and i suppose that `boost::pfr::get` must be...