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
Foo_;
where LessThanNumeric (and LessThanText, too) looks like this: struct LessThanNumeric: std::binary_function< Foo, Foo, bool > { bool operator () ( const Foo& x, const Foo& y ) const { return x.NumericKey () < y.NumericKey (); } }; My source is at http://www.idio.com/misc/mi-test.cpp Anyone got any tips? Thanks! -- -- Marshall Marshall Clow Idio Software mailto:marshall@idio.com It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shaking, the shaking becomes a warning. It is by caffeine alone I set my mind in motion.