Have you taken a look at the table in:
http://www.boost.org/libs/multi_index/doc/tutorial/
key_extraction.html#advanced_key_extractors
Regardless of whether the indexed-by member is const or not, when using
pointers to const elements the proper way of declaring the extractors is:
member<
ItemBase,
const unsigned long,
&ItemBase::some_member
>
member<
ItemBase,
const S2,
&ItemBase::another_member
>
This should clear problems away both in VS and Clang (please report
otherwise.)
Joaqu?n M L?pez Mu?oz
Telef?nica Digital