Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-02-14 16:09:33


David B. Held wrote:
> unsigned Count_;
> char Value_[sizeof(T)];
> };

Another little thing...

Value_ will have to be aligned just like an object of type T.

Wouldn't it be possible to derive TCounted_Record<T> from TRecord<T>,
removing Value_ at the same time?

Philippe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk