boostorg / boostorg/pfr

is_reflectable documentation

Aperta
#164 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
help wanted
Lingua principale
C++
Stelle
1.5k
Fork
176
Merge medio
5g 21h
PR unite (30g)
1

Descrizione

I've been trying to understand `is_reflectable`, but I fail to get what to pass as second argument. My case looks like this:

```
template
class static_results {
static_assert(pfr::is_pfr_reflectable::value, "RowType must be reflectable");
// Implementation
};
```

I want to check that my user type provided me with a `RowType` that is a structure that can be reflected, i.e. I can call `structure_to_tuple`, `for_each_field` and friends on it.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.