
Hi Joh,
JohnQ
Hi, I'm really stuck on this one, so I'm hoping someone can lend me a hand. Basically, I'm defining a templated multi-index-container to hold one piece of data along with two indexes to that data. Next, I'm wrapping that in another templated class that will handle concurrent access to that structure.
My problem is that I'm having trouble figuring out how to define a type that will give me an interator on the 2nd index of the multi-index-container ("bimimapIterator2" below).
[...]
typedef boost::multi_index_container< value_type, indexed_by< ordered_non_unique< tag<index1>,member
>,
This cannot possibly work, as value_type does not have a member called first (you're using a tuple, not an std::pair). Anyway, the problem does not lie here. [...]
typedef typename bimultimap
:: bimimap::index<index2>::type::iterator bimimapIterator2;
You need a disambiguating template keyword:
typedef typename bimultimap