|
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],
> &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<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йÐñÁ}Ñ}
}±¥¹Ñ}
Í¥ø ¤ì())½
Å×µ¸43ÍÁè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