Boost logo

Boost Users :

Subject: [Boost-users] boost::multi_index
From: ppatel_at_[hidden]
Date: 2011-04-06 14:54:31


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 <
    //non-unique as some subscribers might have more than one number
        member<TestStruct, char*, &TestStruct::firstKeyPart>,
        member<TestStruct, char*, &TestStruct::secondKeyPart>,
        member<TestStruct, uint32_t, &TestStruct::thirdKeyPart>,
> TS;


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at