Boost multiindex complex struct
Posted
by StrifeLow
on Stack Overflow
See other posts from Stack Overflow
or by StrifeLow
Published on 2010-05-23T18:19:40Z
Indexed on
2010/05/23
18:51 UTC
Read the original article
Hit count: 267
boost
In boost multiindex example complex_structs, it use one key in the car_manufacturer struct for car_table. If car_manufacturer have been modify to have 2 ID
struct car_manufacturer {
std::string name;
int cm_code;
car_manufacturer(const std::string& name_, const int& cm_code_):name(name_), cm_code(cm_code_){}
};
What will be the key_from_key struct looks like? Have try to add another KeyExtractor or use composite index inside key_from_key, but still cannot compile.
Please help on this. Thanks.
© Stack Overflow or respective owner