Boost logo

Boost Users :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2006-06-06 16:33:20


----- Mensaje original -----
De: Prashant Thakre <prashant.thakre_at_[hidden]>
Fecha: Martes, Junio 6, 2006 9:06 pm
Asunto: Re: [Boost-users] [multi_index].[composite_key] Index creation
atrun-time.

> Hi,
> Thanks for the reply.

You're welcome. I'm afraid I'll have to ask
for some more info before I can try to answer
your original question, though :(

> This is what I am trying to achieve:
> a) Each entry in the container will have tuple containing n-elements
> tuple < t0, t1 ..., tn >, where n is known at run-time. This entry
> will also have other elements.

But, how are you planning to actually implement this?
Certainly you can't do the following:

class element
{
public:
  boost::tuple<t0,t1,...tn> tp;
  ...
};

because you don't know n at compile time. This question
is important, since how you actually implement the
run-time knowledge of n will surely determine the way
you can plug a composite_key into the scheme. If you
can provide some actual code, no matter how sketchy,
showing how you implement your element type, so much
the better.

Looking fwd to your feedback,

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