boostorg / describe

A C++14 reflection library
https://boost.org/libs/describe
67 stars 24 forks source link

Add `BOOST_DEFINE_STRUCT` #35

Open denzor200 opened 1 year ago

denzor200 commented 1 year ago

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