Commit b28cd27
Fix errors in -std=c++11 mode
`free_operators.hpp` had a couple of instances of narrowing conversions
within braced initializers, which is ill-formed since C++11.
`type_traits.hpp` had two instances of aggregates being
value-initialized using empty parentheses. Since these aggregates had
implicitly deleted default constructors (due to the presence of `const`
data members), value-initialization performs default-initialization,
which is ill-formed. We need aggregate-initialization to be performed,
so the initialization must use braces instead of parentheses for C++11
and later.
Change-Id: Ie4d0365fed7fcccf18dfb2c0b341a3bb34abe645
Cherry-picked from the develop branch1 parent 0f35ed8 commit b28cd27
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 579 | | |
583 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
584 | 590 | | |
| 591 | + | |
585 | 592 | | |
586 | 593 | | |
587 | 594 | | |
| |||
0 commit comments