|
Boost Users : |
Subject: Re: [Boost-users] multi_index::composite_key with char[]
From: Joaquin M LópezMuñoz (joaquin_at_[hidden])
Date: 2015-09-07 14:54:02
leyiliu <595657419 <at> qq.com> writes:
>
> Hi,All:
> When I use the multi_index::composite_key with char[],I meet a
> error,when find a elementãIt seems to the make_tuple can't support the
> char[].Because the char[] more faster the std::stringãSo our project
> choose char[] as the column instead of std::string.So How should I do
Hi leyiliu,
I'm not totally sure I'm getting your question, so allow to me to
make a guess:
I assume you have something like
struct X
{
int x;
char str[20];
};
using multi_index_t=multi_index_container<
X,
indexed_by<
ordered_unique<
composite_key<
X,
member<X,int,&X::x>,
member<X,char[20],&X::str>
>
ø(øì((¸¸¸((µÕ±Ñ¥}¥¹á}дô¸¸¸ì(
ÕѼ¥Ðõ´¹±½ÝÉ}½Õ¹¡ÍÑèéµ
}ÑÕÁ± Ä°¡±±¼¤¤ì()Ý¡¥
¥±ÌÝ¥Ñ ()ÉɽÈè¹¼µ
Ñ ½È
±°Ñ¼¡½¹ÍÐÍÑèé±ÍÌñ¡
ÈlÈÁtø¤(¡½¹ÍС
Ȩ½¹Íа½¹ÍС
ÈlÈÁt¤()
ÕÍÍÑèé±ÍÌñ¡
ÉlÈÁtøݽ¸Ð
Áн¹ÍС
Ȩ¡Ñ¡ÑåÁ)½¡±±¼¤
Ì
¸
ÉÕµ¹Ð¸Q¡ÉÌÑݼ¥á̽ÈÑ¡¥Ìè((ĸAɽ٥½µÁ
ɥͽ¸½ÈÍÑÈÑ¡
нÌѡݽɬ((ÕÍ¥¹µÕ±Ñ¥}¥¹á}ÐõµÕ±Ñ¥}¥¹á}½¹Ñ
¥¹Èð(`°(¥¹á}äð(½ÉÉ}Õ¹¥ÅÕð(½µÁ½Í¥Ñ}äð(`°(µµÈñ`±¥¹Ð°`èéàø°(µµÈñ`±¡
ÉlÈÁt°`èéÍÑÈø(ø°(½µÁ½Í¥Ñ}å}½µÁ
Éð(ÍÑèé±ÍÌñ¥¹Ðø°(ÍÑèé±ÍÌñ½¹ÍС
Ȩø(ø(ø(ø(øì()ÍÑèé±ÍÌñ½¹6"£âv÷&·2WVÆÇvVÆÂf÷"6öç7B6"¢æ@¦6%³#ÒFV6æ6ÆÇÂFRÆGFW"¦FV62¢Fò6öç7B6"¢vVâ76V@§Fò7FC£¦ÆW73£¦÷W&F÷"à £"â&÷fFR¶WWG&7F÷"FB&WGW&ç26öç7B6"¢&FW"Fâ§&VfW&Væ6RFò6%³#Ó ¢æÆæR6öç7B6"¢vWE÷7G"6öç7Bb·&WGW&âç7G#·Ð¢
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