11 Nov
2005
11 Nov
'05
2:09 p.m.
Peter Dimov wrote:
Nigel Rantor wrote:
My understanding of uninitialised variables is that their *values* were undefined, that you could not rely on them to be any particular value, including not being within range for that type.
No, this is only true for "unsigned char". Accessing the value of an uninitialized object of any other type is undefined behavior, which means that you can - and in some cases will - get a hardware trap.
Okay, cool. Kind of off-topic. Is there any particular reference you guys would recommend for the C++ standard instead of me being led astray by Bjarne's TCPPPL? Regards, n