Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-08-12 13:12:25

> 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 Base*
> 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 a
(void *) in the worse case?

Philippe A. Bouchard

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