3 ms·
well, representing an optional as a pointer, while nice syntactic sugar, is itself a design decision and adding UB there is not nice. In practice I believe tha
by gpderetta 6y ago
well, representing an optional as a pointer, while nice syntactic sugar, is itself a design decision and adding UB there is not nice.
In practice I believe that all standard libraries have a lightweight check mode that can assert even in release mode.