unamed variable reflection #1554
-
Hi I have sturcture like this:
The input json looks like this:
How can I map Foo? I tried to just use this doesn't seem work:
so I see the object is treated as : |
Beta Was this translation helpful? Give feedback.
Answered by
stephenberry
Jan 7, 2025
Replies: 1 comment
-
You're telling Glaze to treat Here's the full meta that should work: template <>
struct glz::meta<Foo> {
constexpr static auto value=array(&Foo::x,
&Foo::y,
&Foo::z);
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zxeth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're telling Glaze to treat
Foo
as anobject
, but you really wantFoo
to be treated as anarray
. So changevalue = object(...
tovalue = array(...
.Here's the full meta that should work: