-----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_MEMBE R(person,string,lastname)>,
multi_index::ordered_non_unique<
multi_index::tag<resstreetnum>,
BOOST_MULTI_INDEX_MEMBER(person,int,resstreetnum)> >[color=blue]
> people_set;[/color]
......
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 -
http://enigmail.mozdev.org
iD8DBQFDtZkEpxCQXwV2bJARAiFyAJ0SlA2q8ls4SQ/jhep7suC8/Fd7hACcCP2E
2lyn3/OmjYl7hKWbZcaqTfM=
=ry4Y
-----END PGP SIGNATURE-----