Comment by renox
7 years ago
> A constructor is simply a function that takes a block of un-initialized memory and assigns every byte
In C++, the constructor doesn't initialise every bytes (padding for example)..
7 years ago
> A constructor is simply a function that takes a block of un-initialized memory and assigns every byte
In C++, the constructor doesn't initialise every bytes (padding for example)..
Then you need to show that any un-initialized byte can either never be read or is of a fully mapped type where it doesn't matter.
I'm not sure what you mean by 'a fully mapped type' but uninitialised padding bytes are read without problem in C++ when you do a memcpy of a structure..