----- Mensaje original ----- De: damny@web.de Fecha: Viernes, Diciembre 28, 2007 9:31 am Asunto: Re: [Boost-users] [multi_index] passing 'cons t TYPE' as 'this' argument discards qualifiers Para: boost-users@lists.boost.org
hi joaquín,
now it works. thank you.
are there possibilities to avoid the 'std::string' for the 'name' key?
I'm not getting this question. Could you please elaborate?
i would like to know if it is possible to use char[] or char* as an alphanumeric key value and not std::string. improper tests didn't work.
You can certainly use char* for lookup and so avoid the creation of temprary std::strings, using the special lookup facilities provided by ordered indices: http://boost.org/libs/multi_index/doc/tutorial/basics.html#special_look up The following is a recent comment by another Boost user discussing exactly the same issue you're interested in: http://lists.boost.org/boost-users/2007/12/32698.php HTH, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo