| ▲ | samiv 3 hours ago | |||||||
That's why you define your own assert macro and keep in on unconditionally. Your programs will be better for it. | ||||||||
| ▲ | jandrewrogers 2 hours ago | parent [-] | |||||||
An assertion can be arbitrarily expensive to evaluate. This may be worth the cost in a debug build but not in a release build. If all of assertions are cheap, they likely are not checking nearly as much as they could or should. | ||||||||
| ||||||||