Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Using #ifndef NDEBUG in templates is one of the leading causes of one-definition rule violations.

At least traditionally it was common to not mix debug builds with optimized builds between dependencies, but now with contracts introducing yet another set of orthogonal configuration it will be that much harder to ensure that all dependencies make use of the same evaluation semantic.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: