Puoi usare la reflection per accedere ai membri di un tipo.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum