On Oct 30, 2007, at 10:31 AM, Ovanes Markarian wrote:
Hello!
I have a question regarding the multi-index behaviour,
Let's say I have a multi-index container containing some hashed keys. What should happen with this container is empty and I retrieve an indexed by hash view into it?
I have on Visual C++ 2005 an access violation, since I am trying to retrieve a view by it's hashed keys into the const container.
Are you doing what I did yesterday, which is to keep the view as an object rather than as a reference? Like: typedef multi_index_container< ... > multi_index_collection; typedef multi_index_collection::nth_index<1> my_index; multi_index_collection collection; my_index mi = collection.get<1>(); rather than my_index& mi = collection.get<1>(); ??? Hugh Hoover Enumclaw Software