Skip to content

Commit

Permalink
for cpp17
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Aug 2, 2023
1 parent 895c598 commit b56a364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/struct_json/examples/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bool operator==(const person& a, const person& b) {
REFLECTION(person, name, age);

int main() {
person p{.name = "tom", .age = 20};
person p{"tom", 20};
std::string str;

// struct to json
Expand Down

0 comments on commit b56a364

Please sign in to comment.