From b56a3646b53482d8f7fb78c0a704dc09dbcdac5f Mon Sep 17 00:00:00 2001 From: qicosmos Date: Wed, 2 Aug 2023 17:00:32 +0800 Subject: [PATCH] for cpp17 --- src/struct_json/examples/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/struct_json/examples/main.cpp b/src/struct_json/examples/main.cpp index 3943116ab..2018d3df0 100644 --- a/src/struct_json/examples/main.cpp +++ b/src/struct_json/examples/main.cpp @@ -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