R
Ron Eggler
Hi,
I would like to do something like this:
typedef struct{
unsigned short msg;
int SeqNr;
} MsgStruct;
map <string, MsgStruct> MyMsg;
Now I'm wondering how this is compatible with the standard and how I would
access the structs variables directly?
Would it be something like this:
MyMsg["index"].msg= 0xabcd;?
I'm not 100% sure if this would work and i don't have a compiler handy right
now to test this.
Thanks for your opinion,
Ron
I would like to do something like this:
typedef struct{
unsigned short msg;
int SeqNr;
} MsgStruct;
map <string, MsgStruct> MyMsg;
Now I'm wondering how this is compatible with the standard and how I would
access the structs variables directly?
Would it be something like this:
MyMsg["index"].msg= 0xabcd;?
I'm not 100% sure if this would work and i don't have a compiler handy right
now to test this.
Thanks for your opinion,
Ron