Skip to content

Commit

Permalink
fix CPP_CODING_STYLE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsW3 authored Aug 20, 2024
1 parent cb5b79c commit b6c9bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CPP_CODING_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Global and static variables that use dynamic initialization or have non-trivial

**Decision:**

### Decision on destrcution:
### Decision on destruction:

When destructors are trivial, their execution is not subject to ordering at all (they are effectively not "run"); otherwise we are exposed to the risk of accessing objects after the end of their lifetime. Therefore, we only allow objects with static storage duration if they are trivially destructible. Fundamental types (like pointers and int) are trivially destructible, as are arrays of trivially destructible types. Note that variables marked with constexpr are trivially destructible.

Expand Down

0 comments on commit b6c9bd4

Please sign in to comment.