
29 Apr
2006
29 Apr
'06
12:43 p.m.
Dmitry Sychov wrote:
Is it just because on some platforms sizeof(char) != 1 ? If yes we can change 'char' to object with size >= sizeof(T&) to avoid this.
There's no such platform that conforms to the C/C++ standards. sizeof(char) is defined to be 1, and all other types are measured in terms of this. The actual size of a char is given by CHAR_BITS. Sebastian Redl