Comment Comment by maccard Indeed. bool is_even(int* valPtr) { assert(valPtr != nullptr); return *valPtr % 2; } Does not do what you think it does with nullptr. A major game engine [0] has a toggle to enable asserts in shipping builds, mostly for this reason[0] https://dev.epicgames.com/documentation/en-us/unreal-engine/... parent maccard 7 months ago
[0] https://dev.epicgames.com/documentation/en-us/unreal-engine/...