Closed rbock closed 3 years ago
Hi,
I believe you must use meta::data_member_range
on actual type reflection instead of parameter reflection. Reflect T
directly or use meta::type_of
.
Thanks! That certainly explains it.
Now I wonder: How can I iterate over the data members of an object?
Wouldn't it be nice if meta::data_member_range
would allow that?
Nice! Thanks again! Much appreciated :-)
Hi,
While trying to find a workaround for #276, I noticed that I cannot iterate over the data members of a generated struct:
See https://cppx.godbolt.org/z/1Tq8nE
Thanks,
Roland