boost::multi_index::indexed_by<ClassX*,//list of indices
boost::multi_index::hashed_unique<
boost::multi_index::const_mem_fun<ParentOfClassX, key1, &ParentOfClassX::getkey1>//hashed index by unique key1
>,
boost::multi_index::hashed_unique<
boost::multi_index::const_mem_fun<ParentOfClassX, Vs64, &ParentOfClassX::getkey2>//hashed index by unique key1
>,
boost::multi_index::hashed_unique<
boost::multi_index::const_mem_fun<ParentOfClassX, VString, &ParentOfClassX::getkey3>//hashed index by unique key3/ID
>
>
>ClassXMultiKeyIndexed;
ClassXMultiKeyIndexed sample;
and tried compiling and I still get this while compiling(there are more errors below, but removed them),
.
.
.
kytj.cpp
ky_op_tj.cpp
c:\code\lib\boost\boost\multi_index\detail\node_type.hpp(43) : error C2825: 'boost::multi_index::detail::index_node_applier::apply<IndexSpecifierIterator,Super>::index_specifier': must be a class or namespace when followed by '::'
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\apply_wrap.hpp(49) : see reference to class template instantiation 'boost::multi_index::detail::index_node_applier::apply<IndexSpecifierIterator,Super>' being compiled
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\bind.hpp(207) : see reference to class template instantiation 'boost::mpl::apply_wrap2<F,T1,T2>' being compiled
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\apply_wrap.hpp(49) : see reference to class template instantiation 'boost::mpl::bind2<F,T1,T2>::apply<U1,U2>' being compiled
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\apply.hpp(63) : see reference to class template instantiation 'boost::mpl::apply_wrap2<F,T1,T2>' being compiled