Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_index::composite_key with char[]
From: Joaquin M LópezMuñoz (joaquin_at_[hidden])
Date: 2015-12-16 08:28:00


leyiliu <595657419 <at> qq.com> writes:

> > 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
> > <pk_t_ac_client_basic>
> > ,
> >> boost::multi_index::composite_key<
> >> t_ac_client_basic,
> >> boost::multi_index::member&lt;t_ac_client_basic, char[21],
> > &gt; &amp;t_ac_client_basic::LCcode >,
> >> boost::multi_index::member&lt;t_ac_client_basic, char[21],
> > &gt; &amp;t_ac_client_basic::ClientID >
> >> >,
> >> boost::multi_index::composite_key_compare<
> >> std::less
> > <const char*>
> > ,
> €$%Íѐè鱕ÍÌ(ø€ø€ñ½¹ÍЁ¡…Ȩø(ø€øø€$$ø(ø€øø€$$ø(ø€øø€$$ø(ø€øø€$øÑ}…}±¥•¹Ñ}‰…Í¥}Í•Ðì(ø(ø€(øM½ÉÉä±1½¹œÑ¥µ”¹¼Í•”¸(ø½±±½Üå½ÔÍ՝•Íб$…¸¥¹Í•ÉЁ•±•µ•¹Ð¥¹Ñ¼Ñ¡”½¹Ñ…¥¹•È¹ ÕЁѡ”™¥¹ ¤¥Ì(ø…±Í¼„Áɽ‰±•´¸(ø€©Ñ•Íй™¥¹¡Íѐèéµ…­•}ÑÕÁ±” ‰-Lˆ°€ˆÄˆ¤¤ì€¨¸(ø€(øÑ¡…¹­Ì„±½Ð()= °µä‰…¸Íѐè鱕ÍÌñ½¹ÍЁ¡…Ȩø‘½•Ì¹½ÐÝ½É¬¡•É”°…́¥Ð½µÁ…É•Ì)Á½¥¹Ñ•É́Ʌѡ•ÈÑ¡…¸Ñ¡”½¹Ñ•¹Ñ́ѡ•äÁ½¥¹ÐÑ¼¸M¼å½Ô¹••Ñ¼Áɽ٥‘”)å½Õȁ½Ý¸½µÁ…Ʌѽȁ±¥­”è((€€€ÍÑÉՍЁ±•ÍÍ}ÍÑÈ(€€€ì(€€€€€‰½½°½Á•É…ѽȠ¤¡½¹ÍЁ¡…ȨÀı½¹ÍЁ¡…ȨÀÈ¥½¹ÍÐ(€€€€€ì(€€€€€€€É•ÑÕɸÍѐèéÍÑɍµÀ¡ÀıÀȤðÀì(€€€€€ô(€€€ôì()$Ù”ÑÉ¥•Ñ¡¥Ì¥¸Ñ¡”•á…µÁ±”…‰½Ù”…¹Ñ¡”Ñ¡¥¹œÝ½É­Ì°Á±•…Í”É•Á½ÉÐ)‰…¬å½ÕȁɕÍÕ±Ñ̸())½…Å×µ¸43ÍÁ•è5׎è)Q•±•›͹¥„((€€€€¥¹±Õ‘”€ñ‰½½ÍнµÕ±Ñ¥}¥¹‘•á}½¹Ñ…¥¹•‡à¢6–æ6ÇVFRÆ&ö÷7Bö×VÇF•ö–æFW‚öÖVÖ&W"æ‡à¢6–æ6ÇVFRÆ&ö÷7Bö×VÇF•ö–æFW‚ö6ö×÷6—FUö¶W’æ‡à¢6–æ6ÇVFRÆ&ö÷7Bö×VÇF•ö–æFW‚ö÷&FW&VEö–æFW‚æ‡à¢6–æ6ÇVFRÆ77G&–æsà¢6–æ6ÇVFRÆ–÷7G&VÓà ¢7G'V7B€¢°¢‚†6öç7B6†"¢Æ6öç7B6†"¢"¢°¢7FC£§7G&æ7’‡7G#ÇÃ#“°¢7FC£§7G&æ7’‡7G#"Ç"Ã#“°¢ТœÝŒO‹ˆY[X™\ Ú\–ÌŒK –ŽœÝŒ‚ˆ‹ˆÛÛ\ÜÚ]WÚÙ^WØÛÛ\\™Oˆ\Ü×ÜÝ‹ˆ\Ü×ÜÝ‚ˆ‚ˆ‚ˆ‚ˆŽÂˆˆ[XZ[Š
Bˆˆ][WÚ[™^Ý\ÝÞÈ’ÔÈ‹ŒHŸKȐPˆ‹ŒŸKÈ‘ÑH‹ŒˆŸ_Nˆ]]È]]\Ý ™š[™
ÝŽ›XZÙWÝ\J’ÔÈ‹ŒHŠJNˆÝŽ˜ÛÝ]] OœÝŒO‹] OœÝŒ—ˆŽÂˆ


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net