Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_index_container + composite key
From: Uthpal Urubail (uthpal.urubail_at_[hidden])
Date: 2011-11-24 05:17:46


Thanks,
Uthpal


-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Igor R
Sent: Thursday, November 24, 2011 3:14 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] multi_index_container + composite key

How do you expect MIC to know what 99 is and what 90 is? MIC assumes
that the order of tuple elements corresponds to the order of the part
in your composite key:


>         composite_key<
>             Elem_entry,
>             member<Elem_entry,unsigned int,&Elem_entry::node1>,
>             member<Elem_entry,unsigned int,&Elem_entry::node2>
>             >

i.e., the 1st one is node1, and the 2dn one is node2.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net