We've been using PFR on a huge codebase for two years now. In many cases
it's functionality is enough. For example, we're using PFR to get data from
database:
struct OrderInfo{unsigned id; string client, merchant; decimal price; };
auto order = db.Execute(statement).As<OrderInfo>();
Some other usecases for PFR:
* SPIRIT like parsers - parsing directly into the user provided structure
* Binary serializers and readers - to easily store/retrieve data from a
local file
* Generic code - move users from tuple and pair to aggregates to improve
code readability and performance
On Wed, Sep 30, 2020, 10:43 Andrzej Krzemienski