B
Barzo
Hi,
I have to manage a class of messages.
Instead of create a type for each message, I've thought something like
this:
struct message{
int OP_CODE;
t_param params;
}
Where t_param should be an heterogeneous container (eg. vector).
Searching around I've found the boos::extension type_map.
Is this a good solution or is there a better "coding style" for this
problem?
Thanks!
Daniele.
I have to manage a class of messages.
Instead of create a type for each message, I've thought something like
this:
struct message{
int OP_CODE;
t_param params;
}
Where t_param should be an heterogeneous container (eg. vector).
Searching around I've found the boos::extension type_map.
Is this a good solution or is there a better "coding style" for this
problem?
Thanks!
Daniele.