Commit 2ee9fd4
committed
Clarify
What we want to say, for lifetime extension on `static` and `const`
items, is that the lifetime is extended to the end of the program when
the temporary would be extended, according to our other rules, to a
scope outside that of the initializer expression. Let's take the easy
way out here and simply refer normatively to the other rule for this.static / const lifetime extension1 parent 5c7558e commit 2ee9fd4
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
| 339 | + | |
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
| |||
0 commit comments