Created on 2015-04-02.00:00:00 last changed 37 months ago
Rationale (March, 2016):
Whether to support creating a temporary array in such cases is a question of language design and thus should be considered by EWG.
EWG 2022-11-11
The intent is adequately expressed in the specification.
The current wording of the Standard appears to permit code like
void f(const char (&)[10]);
void g() {
f("123");
f({'a','b','c','\0'});
}
creating a temporary array of ten elements and binding the parameter reference to it. This is controversial and should be reconsidered. (See issues 1058 and 1232.)
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-11-24 21:06:23 | admin | set | status: extension -> nad |
| 2017-02-06 00:00:00 | admin | set | messages: + msg5997 |
| 2017-02-06 00:00:00 | admin | set | status: open -> extension |
| 2015-04-02 00:00:00 | admin | create | |