[multi_index] illegal indirection compile error

Could you help me understand what I'm doing wrong in the code below? I'm trying to setup a multi_index structure of class B. class A { const std::string& ID(void) const; ... }; class B : public A { ... }; typedef boost::multi_index::multi_index_container< B*, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::const_mem_fun > >
BSet;
However when I compile VS2005 returns me an "illegal indirection" compile error. Any thoughts? Thanks

typedef boost::multi_index::multi_index_container< B*, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::const_mem_fun
I assume the error is on "&A::ID"? Are you sure that isn't supposed to be A::&ID? I seem to remember something strange about taking the address of member functions, but I'm afraid that I've forgotten the exact details. Dale
participants (2)
-
Dale McCoy
-
Themistoklis Bourdenas