3 ms·
C++17 has std::optional If you've ever used unstable software that crashes in a dozen different ways you can thank null pointers. Modern C++ isn't about subst
by CyberDildonics 9y ago
C++17 has std::optional
If you've ever used unstable software that crashes in a dozen different ways you can thank null pointers.
Modern C++ isn't about substituting references for pointers, it is about dealing with values and removing a level of indirection that pointers gives.
The old style of of using pointers everywhere frequently usually implies a lot of small heap allocations which is also a big performance problem. Both these things end up being huge detriments to speed and stability.