4 ms·
Native pointers do a bunch of different things depending on the context. In contrast, optional has clear semantics. For instance, the ++ operator doesn't work
by humanrebar 8y ago
Native pointers do a bunch of different things depending on the context. In contrast, optional has clear semantics.
For instance, the ++ operator doesn't work for std::optional. For a native pointer, you just have to know (how?) not to use it.