Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_index::composite_key with char[]
From: Joaquín M López Munoz (joaquin_at_[hidden])
Date: 2015-09-12 03:31:54


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<t_ac_client_basic, char[21],
> &amp;t_ac_client_basic::LCcode >,
> boost::multi_index::member<t_ac_client_basic, char[21],
> &amp;t_ac_client_basic::ClientID >
> >,
> boost::multi_index::composite_key_compare<
> std::less<const char*>,
> std::less<const char*>
> >
> >
> >
> > t_ac_client_basic_set;
>
> I get a error,when add this code
> pk_t_ac_client_basic_Inà˜Ñ•ÍЀôÑ•ÍÑM•Ð¹•ÐñÁ­}Ñ}…}±¥•¹Ñ}‰…Í¥Œøì(ø€è(ø•Éɽȁ ÌàØÜè(øƒŠq‰½½ÍÐèéµÕ±Ñ¥}¥¹‘•àèéµÕ±Ñ¥}¥¹‘•á}½¹Ñ…¥¹•Èl¸¸¹t€è靕ӊtè(øƒ–÷šVâžR£žòë–ÂG–> šVÖ"_¢†£¾òo¢¾ß’öül¸¸¹t()$…¸ÐÉ•… ¡¥¹•Í”°‰ÕЁ½½±”QÉ…¹Í±…Ñ”Í՝•ÍÑÌ)Ñ¡”½µÁ¥±•È¥Ì½µÁ±…¥¹¥¹œ…‰½ÕЁµ¥ÍÍ¥¹œ…ɝ́Ѽ•Ð°)Ý¡¥ ¥Ì¥¹‘••Ñ¡”Áɽ‰±•´è()Ñ•ÍÑM•Ð¹•ÐñÁ­}Ñ}…}±¥•¹Ñ}‰…Í¥Œøì()Í¡½Õ±‰”€()Ñ•ÍÑM•Ð¹•ÐñÁ­}Ñ}…}±¥•¹Ñ}‰…Í¥Œø ¤ì())½…Å×µ¸43ÍÁ•è5׎è)Q•±•›͹¥„


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