Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-08-12 12:59:19

From: "Philippe A. Bouchard" <philippeb_at_[hidden]>

> > The standard doesn't guarantee that the offset calculated from a given
> > static_cast will work again, given the same source and target types.
> > Actually doing the static_cast is the only portable way to find the
> > from a Derived*. Indirection through a function pointer which does the
> > static_cast might be an option.
> I read somewhere an integer is always the size of a pointer. What about
> (void *) in the worse case?

You read wrong. Please get a copy of the standard and start studying. It
isn't fair to push a design that uses low-level hacks here without having
done at least some of the legwork to come to grips with what is and is not


           David Abrahams * Boost Consulting
dave_at_[hidden] *

Boost list run by bdawes at, gregod at, cpdaniel at, john at