describe
describe copied to clipboard
A C++14 reflection library
Hi, @pdimov ! Let me introduce you a nice thing that I contribute for a long time. The [Boost PFR](https://github.com/boostorg/pfr) library provides everithing we need to get rid of `BOOST_DESCRIBE_STRUCT`...
`BOOST_DESCRIBE_STRUCT` causes clang warning `-Wgnu-zero-variadic-macro-arguments`. How to best deal with this in absence of c++20? Set `-Wno-gnu-zero-variadic-macro-arguments`?
The macros receive it, and the reflection TS also provides it.
Like this: ``` BOOST_DEFINE_STRUCT(X, (), ( (int, m1), (int, m2) )); ``` Gives the similar result as here: https://www.boost.org/doc/libs/master/libs/describe/doc/html/describe.html#classes_class_types_with_public_members
Closes #27
I suggest adding support for getters and setters to the library. I see this new functionality like this: ``` #include #include struct employee { void set_name (std::string name) ; void...