Boost logo

Boost :

From: Ian Bruntlett (Ian.Bruntlett_at_[hidden])
Date: 2000-07-18 03:35:00

> Can I suggest an optimisation ? In your RawHandle, you can use some sort
> union between the void* raw pointer and the boolean. On most
> implementations, the pointers are always at least 2-byte aligned (4-bytes
> for my Macintosh). So, you can use the least significant bit to store your
> boolean.

May I suggest you make the optimisation optional?
It optimises space usage, at the expense of portability and execution speed.
Sometimes portability and/or speed will be more important.


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