You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/structs.md
+1-34
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ And you can parse it back into a struct:
69
69
constauto homer = rfl::json::read<Person>(json_string).value();
70
70
```
71
71
72
-
## Important notes
72
+
## Important note
73
73
74
74
**Do not create custom constructors on the structs.**
75
75
@@ -84,36 +84,3 @@ But if you create a custom constructor, then C++ will no longer allow this kind
84
84
If you want to create the struct from one of your classes (the most like reason, you want to create custom constructors in the first place),
85
85
you might want to check out the section on [custom classes](https://github.com/getml/reflect-cpp/blob/main/docs/custom_classes.md) or [custom parsers](https://github.com/getml/reflect-cpp/blob/main/docs/custom_parser.md).
86
86
87
-
**Do not define the struct inside a function.**
88
-
89
-
Another limitation is that you cannot declare the struct inside a function. For instance:
0 commit comments