4 ms·
You can, it's possible to address "missing values" with a default construct. Example: int x = default; // x becomes zero T x = default; // x becomes whatev
by sedatk 6y ago
You can, it's possible to address "missing values" with a default construct. Example:
int x = default; // x becomes zero
T x = default; // x becomes whatever the default value for struct is
- AaronFriel 6y agoThen we're back to accessing that value being an enormous footgun, yes?