Richard Hodges wrote:
The Boost formal review of the Describe starts Monday, taking place from March 1st, 2021 to March 10th, 2021 (inclusive).
The library is authored by Peter Dimov.
Documentation: https://pdimov.github.io/describe/doc/html/describe.html Source: https://github.com/pdimov/describe
The library provides a simple means of providing reflection for structures and enums in C++.
The documentation contains a number of common motivating examples, including:
- A universal print function https://pdimov.github.io/describe/doc/html/describe.html#example_print_fu nction
- JSON serialisation https://pdimov.github.io/describe/doc/html/describe.html#example_to_json
Thanks Richard. Here's one additional example I wrote, an interactive console that allows printing and modifying variables using Describe and Boost.JSON in 119 lines of code: https://gist.github.com/pdimov/1d2507d5aa7809240be1bf7f1cab86a3 Here's a sample session: https://gist.github.com/pdimov/ad90d917ef26072e1d6f2259771a7799