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

Addressing the limitation of get_name

This commit is contained in:
bela
2023-11-30 10:09:09 +01:00
parent 98789f610a
commit 5b55480c65
4 changed files with 60 additions and 14 deletions

View File

@@ -490,10 +490,6 @@ 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.
[h2 Configuration Macro]