4 ms·
Wouldn't just be nullptr?
by ant6n 11y ago
Wouldn't just be nullptr?
- catnaroek 11y agoThe very concept of a nullable pointer is problematic, because it means that every dereference operation is potentially unsafe. The only satisfactory solution is to enforce, using the type system, the rule that moved objects can't be reused. Unfortunately, C++'s type system can't express this.