Im have third-party C header, what describes structs, like
typedef struct
{
int int_value;
char char_value;
bool bool_value;
}
example_struct_t;
I cant make any changes in it.
But i need to serialize data from this structs in custom text format.
Does C++ has any way to parse this structs in compile time and making something, like std::tuple<int,char,bool>
?
PS: I have no access to boost.
Aucun commentaire:
Enregistrer un commentaire