2 ms·
I can write a method that is valid C++, but it gets called by something that isn't valid C++. If I don't check for null references, then my method will crash. M
by lowbloodsugar 10y ago
I can write a method that is valid C++, but it gets called by something that isn't valid C++. If I don't check for null references, then my method will crash. My method is valid C++, and yet it gets a null reference. So clearly, references in valid C++ can be null, and must be checked for.