We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9876f25 commit 7a506c6Copy full SHA for 7a506c6
1 file changed
test_package/main.cpp
@@ -10,7 +10,9 @@ struct MyTestStruct
10
11
int main()
12
{
13
- MyTestStruct person{.name="Jonh", .age=23};
+ MyTestStruct person;
14
+ person.name="Jonh";
15
+ person.age=23;
16
17
std::string person_json = JS::serializeStruct(person);
18
std::cout << person_json << std::endl;
0 commit comments