|
Boost Users : |
From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2007-12-28 08:27:54
----- Mensaje original -----
De: damny_at_[hidden]
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_at_[hidden]
> 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
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