Skip to content

Commit

Permalink
chore: notes
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 1, 2024
1 parent d2ad38a commit 6f0da53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sample/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ void third_party_jsonization_1()

void third_party_jsonization_2()
{
/* If you don't like stupid invasive function, you can use `json::serialize` and `json::deserialize`
* for more elegant conversion: */
struct Serializer
{
json::value operator()(const ThirdPartyStruct& t) const { return t.a; }
Expand Down

0 comments on commit 6f0da53

Please sign in to comment.