Commit e6a1cc3
committed
Make
This enables uses like `new<std::array<int,5>>(1, 2, 3, 4, 5)` which didn't work before (not even with P0960)
See #740
Note: I chose "use list init if available, else fall back to non-list init" instead of "use paren init if available, else fall back to list init" so that we would get consistent results for initializing a `new<std::vector<int>>` with `(10)`, `(10, 20)`, `(10, 20, 30)`, etc. (i.e., no surprise for `(10, 20)`)new use list initialization if available1 parent 8d66d57 commit e6a1cc3
File tree
2 files changed
+15
-3
lines changed- include
- regression-tests/test-results/msvc-2022
2 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
560 | 567 | | |
561 | 568 | | |
562 | 569 | | |
563 | 570 | | |
564 | 571 | | |
565 | 572 | | |
566 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
567 | 579 | | |
568 | 580 | | |
569 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
0 commit comments