Closed jensmaurer closed 9 months ago
The example is correct as-written. The immediate function is not invoked right away, because it is in a default argument.
CWG: Clarify error is because of evaluation of id
.
Accepted with modifications. The example is written as intended. The comments in the example have been amended to clarify the exposition.
A non-const variable is passed to an immediate function.
insert "const " before "int x = 0;"