| |||
| Home > Compiler Command-line Options > --allow_null_this, --no_allow_null_this | |||
These options allow and disallow null this pointers in C++.
Allowing null this pointers gives well-defined behavior when a nonvirtual member function is called on a null object pointer.
Disallowing null this pointers enables the compiler to perform optimizations, and conforms with the C++ standard.