2
0
mirror of https://github.com/boostorg/pfr.git synced 2026-01-19 04:22:13 +00:00

Merge pull request #152 from schaumb/get_name

Addressing the limitation of get_name
This commit is contained in:
Antony Polukhin
2024-01-28 11:52:57 +03:00
committed by GitHub
4 changed files with 62 additions and 12 deletions

View File

@@ -490,9 +490,7 @@ struct aggregate : empty { // not a SimpleAggregate
```
The library may work with aggregates that don't satisfy the requirements of `SimpleAggregate`, but the behavior tends to be non-portable.
Boost.PFRs extraction of field name works with a `SimpleAggregate` with non-internal linkage (with aggregats that could be used as `extern T t;`).
Do not use this functionality with anonymous structures, local structures
or a structure defined inside anonymous namespace as the behavior tends to be non-portable.
Boost.PFRs extraction of field name works with only `SimpleAggregate` types.
[h2 Configuration Macro]