Skip to content

Commit

Permalink
[expr.const] Clarify example on when evaluation takes place
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave committed Mar 8, 2024
1 parent 2cef31b commit 52d958e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7948,8 +7948,8 @@
\begin{example}
\begin{codeblock}
bool f() {
char array[1 + int(1 + 0.2 - 0.1 - 0.1)]; // Must be evaluated during translation
int size = 1 + int(1 + 0.2 - 0.1 - 0.1); // May be evaluated at runtime
char array[1 + int(1 + 0.2 - 0.1 - 0.1)]; // Arithmetic is evaluated during translation
int size = 1 + int(1 + 0.2 - 0.1 - 0.1); // Arithmetic is evaluated during execution
return sizeof(array) == size;
}
\end{codeblock}
Expand Down

0 comments on commit 52d958e

Please sign in to comment.