Joaquín M López Munoz wrote
leyiliu <595657419 <at> qq.com> writes:
I follow your suggest,define the set like this:
typedef boost::multi_index_container< t_ac_client_basic, boost::multi_index::indexed_by<
boost::multi_index::ordered_non_unique< boost::multi_index::tag
, boost::multi_index::composite_key< t_ac_client_basic, boost::multi_index::member<t_ac_client_basic, char[21], > &t_ac_client_basic::LCcode >, boost::multi_index::member<t_ac_client_basic, char[21], > &t_ac_client_basic::ClientID > >, boost::multi_index::composite_key_compare< std::less , std::less > > > t_ac_client_basic_set;
I get a error,when add this code pk_t_ac_client_basic_Index& test = testSet.get
; : error C3867: “boost::multi_index::multi_index_container [...] ::get”: 函数调用缺少参数列表;请使 [...] I can't read Chinese, but Google Translate suggests the compiler is complaining about missing args to get, which is indeed the problem:
testSet.get
; should be
testSet.get
(); Joaquín M López Muñoz Telefónica _______________________________________________ Boost-users mailing list
Boost-users@.boost
Sorry,Long time no see. Follow you suggest,I can insert element into the container.But the find() is also a problem. *test.find(std::make_tuple("KS", "1")); *. thanks a lot -- View this message in context: http://boost.2283326.n4.nabble.com/multi-index-composite-key-with-char-tp467... Sent from the Boost - Users mailing list archive at Nabble.com.