Boost logo

Boost Users :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2007-06-02 08:28:46


----- Mensaje original -----
De: "JOAQUIN LOPEZ MU?Z" <joaquin_at_[hidden]>
Fecha: Sábado, Junio 2, 2007 1:48 pm
Asunto: Re: [Boost-users] [multi_index] MSVS 2005 visualizers?
Para: boost-users_at_[hidden]

> ----- Mensaje original -----
> De: Filip Konvi?ka <filip.konvicka_at_[hidden]>
> Fecha: Sábado, Junio 2, 2007 0:27 am
> Asunto: Re: [Boost-users] [multi_index] MSVS 2005 visualizers?
> Para: boost-users_at_[hidden]
>
> > > > It seems that accessing node_count using the same technique
> > > > as with ordered_unique does not work - I'm off by 4 bytes
> > > > (see the (((char*)&$c)+4) expression).

Umm... I've been thinking a little more about this and it turns
out that we can do the downcast legally without resorting
to the multi_index_helper_3 hack. The following should work for
any kind of header_holder:

  size : (($T2*)&$c)->node_count

because T2 actually derives from header_holder<*,T2>. This
would allow us to dispense with multi_index_helper_3 entirely.
Can you check this out?

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