Sorry Joaquin, will do that from next time..
Corrected my code to,
typedef boost::multi_index_container<
ClassX*, //mapped value
boost::multi_index::indexed_by //hashed index by unique key1
,
boost::multi_index::hashed_unique<
boost::multi_index::const_mem_fun //hashed index by unique key1
,
boost::multi_index::hashed_unique<
boost::multi_index::const_mem_fun //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 '::'
with
[
IndexSpecifierIterator=boost::mpl::v_iter>,boost::
multi_index::hashed_unique>,boost::multi_index::
hashed_unique>>,0>,
Super=boost::multi_index::detail::hashed_index_node<
boost::multi_index::detail::hashed_index_node>,boost::multi_index::detail::hashed_unique_tag>,
boost::multi_index::detail::hashed_unique_tag>,boost::
multi_index::detail::hashed_unique_tag>
]
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'
being compiled
with
[
IndexSpecifierIterator=boost::mpl::v_iter>,boost::
multi_index::hashed_unique>,boost::multi_index::
hashed_unique>>,0>,
Super=boost::multi_index::detail::hashed_index_node<
boost::multi_index::detail::hashed_index_node>,boost::multi_index::detail::hashed_unique_tag>,
boost::multi_index::detail::hashed_unique_tag>,boost::
multi_index::detail::hashed_unique_tag>
]
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\bind.hpp(207) :
see reference to class template instantiation
'boost::mpl::apply_wrap2'
being compiled
with
[
F=boost::multi_index::detail::index_node_applier,
T1=boost::mpl::v_iter>,boost::
multi_index::hashed_unique>,boost::multi_index::
hashed_unique>>,0>,
T2=boost::multi_index::detail::hashed_index_node>,boost::multi_index::
detail::hashed_unique_tag>,boost::multi_index::detail::
hashed_unique_tag>,boost::multi_index::detail::hashed_unique_tag>
]
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\apply_wrap.hpp(49)
: see reference to class template instantiation
'boost::mpl::bind2::apply' being compiled
with
[
F=boost::multi_index::detail::index_node_applier,
T1=boost::mpl::_2,
T2=boost::mpl::_1,
U1=boost::multi_index::detail::hashed_index_node>,boost::multi_index::
detail::hashed_unique_tag>,boost::multi_index::detail::
hashed_unique_tag>,boost::multi_index::detail::hashed_unique_tag>,
U2=boost::mpl::v_iter>,boost::
multi_index::hashed_unique>,boost::multi_index::
hashed_unique>>,0>
]
c:\code\lib\boost\boost\mpl\aux_\preprocessed\plain\apply.hpp(63) :
see reference to class template instantiation
'boost::mpl::apply_wrap2'
being compiled
with
[
F=boost::mpl::bind2,
T1=boost::multi_index::detail::hashed_index_node