From 52d958ed92c37861a4ed24fbd516b4e7a5445d9a Mon Sep 17 00:00:00 2001 From: Eisenwave Date: Fri, 8 Mar 2024 13:01:24 +0100 Subject: [PATCH] [expr.const] Clarify example on when evaluation takes place --- source/expressions.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/expressions.tex b/source/expressions.tex index 7b09b36d39..2d51d0c64c 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -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}