
----- Mensaje original ----- De: Jeremy Maitin-Shepard <jbms@attbi.com> Fecha: Jueves, Abril 15, 2004 7:50 pm Asunto: Re: [boost] Re: [indexed_set] revised naming proposal
How about just allowing any MPL sequence to specify the indices?
mpl_index_list does precisely this. Check the MPL part in the advanced topics section of the docs.
Also, it would be a nice syntactic convenience to allow the main container template to accept a "variable" number of parameters, and then allow the indices to be specified as parameters directly to the main container template.
Pardon? Do you mean something like multi_index_container < employee, ordered_unique<...>, unordered_unique<...>
without the index_list<> nesting? This cannot be done, as multi_index_container accepts an additional argument, the allocator class. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo