From: Wusel (Wusel1311_at_[hidden])
Date: 2005-03-01 06:15:13
Hi Joaquín M López Muñoz,
thank you for your quick answer! I appreciate that multi_index_container
exist and I can use it. In my opinion this library is very useful and
facilitate many programs.
>> 44 //version B: DOES compile
>> 45 typedef index<employee_set,id >::type employee_set_by_id;
>> 46 typedef index<employee_set,age>::type employee_set_by_age;
> OK, fine.
>> 48 //remove the name index (lines 31, 32) for following versions
>> 50 //version C: DOES compile
>> 51 typedef index<employee_set,id >::type employee_set_by_id;;
> OK, too.
>> 53 //version D: does NOT compile
>> 54 //causes
>> 55 // error C2039: 'item3' : is not a member of
>> 56 typedef index<employee_set,age>::type employee_set_by_age;
> !! Here I'm missing somethig... Isn't version D exactly the same
> as version B, which does work?
Exact this I wanted point out. Version D differs from version B in
removing two lines 31, 32 only (i.e. the name index). Version C is nearly
the same, too. Nevertheless there is a difference when compiling.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk