3 ms·
> 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
by renox 8y 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)..
- Animats 8y agoThen 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.
- renox 8y agoI'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..