Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
boost::MultiIndex help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Evan Carew, post: 2537701"] -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, lets try this example source code: typedef multi_index::multi_index_container< person, multi_index::indexed_by< multi_index::ordered_unique< multi_index::tag<voterid>, BOOST_MULTI_INDEX_MEMBER(person,unsigned long,voterid)>, multi_index::ordered_non_unique< multi_index::tag<lastname>,BOOST_MULTI_INDEX_MEMBER(person,string,lastname)>, multi_index::ordered_non_unique< ...... int main(){ const people_set::nth_index<2>::type& resstreet_index=ps.get<2>(); pair<people_set::iterator, people_set::iterator> range; range = resstreet_index.equal_range((*domoItor).first); } The above code doesn't compile. If you happen to know why, I'd appreciate some help in getting it going. Thanks Evan Carew -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - [URL]http://enigmail.mozdev.org[/URL] iD8DBQFDtZkEpxCQXwV2bJARAiFyAJ0SlA2q8ls4SQ/jhep7suC8/Fd7hACcCP2E 2lyn3/OmjYl7hKWbZcaqTfM= =ry4Y -----END PGP SIGNATURE----- [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
boost::MultiIndex help
Top