cpp-best-practices / cpp-best-practices/cppbestpractices

When/how to use asserts

Open
#71 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
8.8k
Forks
902
PR merge metrics
No merged PRs in 30d

Description

There's a really good point in [Style.md](https://github.com/lefticus/cppbestpractices/blob/master/03-Style.md) on how not to use asserts, but should we document when to use them as well? I think the c++ usage is quite different to other languages, where asserts are used for test code but not for dev code.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.