
6 Apr
2011
6 Apr
'11
6:54 p.m.
Hello,
I have a question regarding creating composite key/specifying length for arrays while using multi_index container based on following structure.
struct TestStruct {
char firstKey[50];
char secondKeyPart[3];
uint32_t thirdKeyPart;
......Some other information....
};
Do I really read to specify this lengths for character arrays? If yes, how do I do that while specifying key parts as below?
typedef multi_index_container <
TestStruct,
indexed_by<
//non-unique as some subscribers might have more than one number
hashed_unique<
composite_key<
TestStruct,
member
TS;
Thanks