mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 03:04:36 +03:00
Update 05-Considering_Maintainability.md
This commit is contained in:
@@ -42,7 +42,7 @@ assert(set_value(something));
|
|||||||
assert(success);
|
assert(success);
|
||||||
```
|
```
|
||||||
|
|
||||||
The `assert()` will be removed in release builds which will prevent the `set_value` call from every happening.
|
The `assert()` will be removed in release builds which will prevent the `set_value` call from ever happening.
|
||||||
|
|
||||||
So while the second version is uglier, the first version is simply not correct.
|
So while the second version is uglier, the first version is simply not correct.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user