Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-08-07 23:37:43

> >> If I understand correctly, you assume that the type id is stored
> >sizeof(int)
> >> bytes before the object. First, I don't see how this could possibly be
> >> true,
> >> and second, I don't see how this could possible be defined. There are
> >> very few guarantees about memory layout, and I don't think any of them
> >> cover your uses. If I don't understand your code correctly, perhaps
> >> can explain it in great detail.
> >
> >Well this issue is based purely on the fact that an integer is always the
> >size of a machine word; they will always be aligned with memory.
> >are defined this way in the standards.
> Not in the C++ standard they aren't.

I'm sure C++ support of C headers implies integers are size of a machine
word in C++.

Philippe A. Bouchard

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