You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a nested json structure of the members in a struct when defining the trait using binding traits. Something like this, which obviously fails to compile:
For now the answer is that this is not directly supported, the expectation is that something supposed to be a sub-object in JSON also is a sub-object in C++. That said, I'll look into whether this can be made possible without rewriting half the library...
I would like to create a nested json structure of the members in a struct when defining the trait using binding traits. Something like this, which obviously fails to compile:
The
element
template is declaredtemplate<auto P>
and gcc complains:So how do you put a json object into an array in one traits definition?
Or, same question basically, if I have an object (like in my last question) instead of an array and I want to group some members:
so that the result could be:
The text was updated successfully, but these errors were encountered: