Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Sep 27, 2024
1 parent 8183916 commit 9f215f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/iguana 使用文档.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct person
YLT_REFL(person, name, age); // 通过这个宏定义元数据让person 成为一个可反射对象
#endif
```
如何使用C++20 编译器(gcc11+, clang13+, msvc2022)则无需定义YLT_REFL宏的,否则需要通过YLT_REFL 宏定义元数据,定义之后就可以一行代码实现json 的序列化与反序列化了。
如果使用C++20 编译器(gcc11+, clang13+, msvc2022)则无需定义YLT_REFL宏的,否则需要通过YLT_REFL 宏定义元数据,定义之后就可以一行代码实现json 的序列化与反序列化了。

```c++
person p = { "tom", 28 };
Expand Down

0 comments on commit 9f215f9

Please sign in to comment.