Boost logo

Boost Users :

From: Martin Higham (martinh_at_[hidden])
Date: 2005-12-03 05:42:37


I have created a multi_index_container inline with one ordered_unique
index and one hashed_unique index as demonstrated in the
documentation (http://www.boost.org/libs/multi_index/doc/advanced_topics.html#hash_lookup).
I can happily add and retrieve items using find() as indicated.

However, if I use the =* operator as indicated and there is no
matching record a memory error occurs.

Therefore I need to assign the find result to an iterator and check
for end(). Can anyone tell me what type this iterator should be? I've
tried many combinations non of which compile.

I am using Boost v1.33.0 with Darwin gcc 4.0.1

Thanks

Martin


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