Fix the documentation for the macros

the correct maximum number of member variables is 63
This commit is contained in:
George Sedov 2024-12-20 20:29:31 +01:00
parent 3baca54fd5
commit cb4c1d5442
3 changed files with 7 additions and 7 deletions

View File

@ -40,7 +40,7 @@ The base type **must** be already serializable/deserializable.
: name of the base type (class, struct) `type` is derived from
`member` (in)
: name of the member variable to serialize/deserialize; up to 64 members can be given as comma-separated list
: name of the member variable to serialize/deserialize; up to 63 members can be given as comma-separated list
## Default definition

View File

@ -25,7 +25,7 @@ parameter is the name of the class/struct, and all remaining parameters name the
: name of the type (class, struct) to serialize/deserialize
`member` (in)
: name of the member variable to serialize/deserialize; up to 64 members can be given as comma-separated list
: name of the member variable to serialize/deserialize; up to 63 members can be given as comma-separated list
## Default definition
@ -50,8 +50,8 @@ See examples below for the concrete generated code.
!!! warning "Implementation limits"
- The current implementation is limited to at most 64 member variables. If you want to serialize/deserialize types
with more than 64 member variables, you need to define the `to_json`/`from_json` functions manually.
- The current implementation is limited to at most 63 member variables. If you want to serialize/deserialize types
with more than 63 member variables, you need to define the `to_json`/`from_json` functions manually.
- The macros only work for the [`nlohmann::json`](../json.md) type; other specializations such as
[`nlohmann::ordered_json`](../ordered_json.md) are currently unsupported.

View File

@ -25,7 +25,7 @@ parameter is the name of the class/struct, and all remaining parameters name the
: name of the type (class, struct) to serialize/deserialize
`member` (in)
: name of the (public) member variable to serialize/deserialize; up to 64 members can be given as comma-separated list
: name of the (public) member variable to serialize/deserialize; up to 63 members can be given as comma-separated list
## Default definition
@ -51,8 +51,8 @@ See examples below for the concrete generated code.
!!! warning "Implementation limits"
- The current implementation is limited to at most 64 member variables. If you want to serialize/deserialize types
with more than 64 member variables, you need to define the `to_json`/`from_json` functions manually.
- The current implementation is limited to at most 63 member variables. If you want to serialize/deserialize types
with more than 63 member variables, you need to define the `to_json`/`from_json` functions manually.
- The macros only work for the [`nlohmann::json`](../json.md) type; other specializations such as
[`nlohmann::ordered_json`](../ordered_json.md) are currently unsupported.