
31 Jan
2005
31 Jan
'05
7:55 p.m.
Marshall Clow <marshall <at> idio.com> writes:
I'm trying to use boost::multi_index for the first time, and I'm getting odd compile errors. I have a class with two "keys", a text one and a numeric one, and I want to have two indices into the collection.
So, I tried several things, and all of them get the same error: 'index_class' is not a member of class 'boost::multi_index::ordered_unique<boost::multi_index::identity<Foo>, boost::multi_index::detail::null_arg, boost::multi_index::detail::null_arg>' (and then an amazing cascade after that)
Seems to me you have forgotten to include <boost/multi_index/ordered_index.hpp>. If problems persist, please come back. Good luck, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo