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
person p{32, "tom"};
auto tp = struct_pack::detail::visit_members(p, [](auto&... args){
returnstd::make_tuple(args...);
});
std::string s;
struct_json::to_json(tp, s);
but struct_pack can reflect member names in c++20 after refactor, and the code will be more simpler, you can serialize a struct pack struct to json directly, no need transfer it to a tuple any more.
What happened + What you expected to happen
There are the following structures:
Can be converted to:
Reproduction way
n/a
Anything else
n/a
Are you willing to submit a PR?
n/a
The text was updated successfully, but these errors were encountered: