Commit 4dee641
authored
[libc++] Implements LWG3130. (#101889)
This adds addressof at the required places in [input.output]. Some of
the new tests failed since string used operator& internally. These have
been fixed too.
Note the new fstream tests perform output to a basic_string instead of a
double. Using a double requires num_get specialization
num_get<CharT, istreambuf_iterator<CharT,
char_traits_operator_hijacker<CharT>>
This facet is not present in the locale database so the conversion would
fail due to a missing locale facet. Using basic_string avoids using the
locale.
As a drive-by fixes several bugs in the ofstream.cons tests. These
tested ifstream instead of ofstream with an open mode.
Implements:
- LWG3130 [input.output] needs many addressof
Closes #100246.1 parent 66f4e3f commit 4dee641
File tree
49 files changed
+941
-177
lines changed- libcxx
- docs/Status
- include
- test
- std
- input.output
- file.streams/fstreams
- fstream.cons
- ifstream.cons
- ofstream.cons
- iostreams.base/ios/basic.ios.members
- string.streams
- istringstream/istringstream.cons
- ostringstream/ostringstream.cons
- stringstream/stringstream.cons
- strings/basic.string
- string.cons
- string.modifiers/string_swap
- support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+941
-177
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
1136 | 1137 | | |
1137 | 1138 | | |
1138 | 1139 | | |
1139 | | - | |
| 1140 | + | |
| 1141 | + | |
1140 | 1142 | | |
1141 | 1143 | | |
1142 | 1144 | | |
1143 | | - | |
| 1145 | + | |
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | 1149 | | |
1148 | 1150 | | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | | - | |
| 1153 | + | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | 1156 | | |
1155 | 1157 | | |
1156 | 1158 | | |
| 1159 | + | |
1157 | 1160 | | |
1158 | 1161 | | |
1159 | | - | |
| 1162 | + | |
1160 | 1163 | | |
1161 | 1164 | | |
1162 | 1165 | | |
1163 | 1166 | | |
1164 | 1167 | | |
1165 | 1168 | | |
1166 | 1169 | | |
1167 | | - | |
| 1170 | + | |
1168 | 1171 | | |
1169 | 1172 | | |
1170 | 1173 | | |
| |||
1187 | 1190 | | |
1188 | 1191 | | |
1189 | 1192 | | |
1190 | | - | |
| 1193 | + | |
1191 | 1194 | | |
1192 | 1195 | | |
1193 | 1196 | | |
| |||
1293 | 1296 | | |
1294 | 1297 | | |
1295 | 1298 | | |
1296 | | - | |
| 1299 | + | |
| 1300 | + | |
1297 | 1301 | | |
1298 | 1302 | | |
1299 | 1303 | | |
1300 | | - | |
| 1304 | + | |
1301 | 1305 | | |
1302 | 1306 | | |
1303 | 1307 | | |
1304 | 1308 | | |
1305 | 1309 | | |
1306 | 1310 | | |
1307 | 1311 | | |
1308 | | - | |
| 1312 | + | |
1309 | 1313 | | |
1310 | 1314 | | |
1311 | 1315 | | |
1312 | 1316 | | |
1313 | 1317 | | |
| 1318 | + | |
1314 | 1319 | | |
1315 | 1320 | | |
1316 | | - | |
| 1321 | + | |
1317 | 1322 | | |
1318 | 1323 | | |
1319 | 1324 | | |
1320 | 1325 | | |
1321 | 1326 | | |
1322 | 1327 | | |
1323 | 1328 | | |
1324 | | - | |
| 1329 | + | |
1325 | 1330 | | |
1326 | 1331 | | |
1327 | 1332 | | |
| |||
1344 | 1349 | | |
1345 | 1350 | | |
1346 | 1351 | | |
1347 | | - | |
| 1352 | + | |
1348 | 1353 | | |
1349 | 1354 | | |
1350 | 1355 | | |
| |||
1454 | 1459 | | |
1455 | 1460 | | |
1456 | 1461 | | |
1457 | | - | |
| 1462 | + | |
| 1463 | + | |
1458 | 1464 | | |
1459 | 1465 | | |
1460 | 1466 | | |
1461 | | - | |
| 1467 | + | |
1462 | 1468 | | |
1463 | 1469 | | |
1464 | 1470 | | |
1465 | 1471 | | |
1466 | 1472 | | |
1467 | 1473 | | |
1468 | 1474 | | |
1469 | | - | |
| 1475 | + | |
1470 | 1476 | | |
1471 | 1477 | | |
1472 | 1478 | | |
1473 | 1479 | | |
1474 | 1480 | | |
1475 | 1481 | | |
1476 | 1482 | | |
1477 | | - | |
| 1483 | + | |
1478 | 1484 | | |
1479 | 1485 | | |
1480 | 1486 | | |
1481 | 1487 | | |
| 1488 | + | |
1482 | 1489 | | |
1483 | 1490 | | |
1484 | 1491 | | |
1485 | | - | |
| 1492 | + | |
1486 | 1493 | | |
1487 | 1494 | | |
1488 | 1495 | | |
| |||
1505 | 1512 | | |
1506 | 1513 | | |
1507 | 1514 | | |
1508 | | - | |
| 1515 | + | |
1509 | 1516 | | |
1510 | 1517 | | |
1511 | 1518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | | - | |
| 625 | + | |
625 | 626 | | |
626 | | - | |
| 627 | + | |
627 | 628 | | |
628 | | - | |
| 629 | + | |
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
| |||
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
643 | | - | |
| 644 | + | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| |||
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
710 | | - | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
| 875 | + | |
| 876 | + | |
876 | 877 | | |
877 | 878 | | |
878 | | - | |
| 879 | + | |
879 | 880 | | |
880 | 881 | | |
881 | | - | |
| 882 | + | |
882 | 883 | | |
883 | 884 | | |
884 | 885 | | |
| |||
924 | 925 | | |
925 | 926 | | |
926 | 927 | | |
927 | | - | |
| 928 | + | |
928 | 929 | | |
929 | 930 | | |
930 | 931 | | |
| |||
941 | 942 | | |
942 | 943 | | |
943 | 944 | | |
944 | | - | |
| 945 | + | |
945 | 946 | | |
946 | 947 | | |
947 | 948 | | |
| |||
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
1010 | | - | |
| 1011 | + | |
| 1012 | + | |
1011 | 1013 | | |
1012 | 1014 | | |
1013 | | - | |
| 1015 | + | |
1014 | 1016 | | |
1015 | 1017 | | |
1016 | | - | |
| 1018 | + | |
1017 | 1019 | | |
1018 | 1020 | | |
1019 | 1021 | | |
| |||
1060 | 1062 | | |
1061 | 1063 | | |
1062 | 1064 | | |
1063 | | - | |
| 1065 | + | |
1064 | 1066 | | |
1065 | 1067 | | |
1066 | 1068 | | |
| |||
1078 | 1080 | | |
1079 | 1081 | | |
1080 | 1082 | | |
1081 | | - | |
| 1083 | + | |
1082 | 1084 | | |
1083 | 1085 | | |
1084 | 1086 | | |
| |||
1145 | 1147 | | |
1146 | 1148 | | |
1147 | 1149 | | |
1148 | | - | |
| 1150 | + | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | | - | |
| 1153 | + | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | 1156 | | |
1155 | | - | |
| 1157 | + | |
1156 | 1158 | | |
1157 | 1159 | | |
1158 | 1160 | | |
| |||
1201 | 1203 | | |
1202 | 1204 | | |
1203 | 1205 | | |
1204 | | - | |
| 1206 | + | |
1205 | 1207 | | |
1206 | 1208 | | |
1207 | 1209 | | |
| |||
1218 | 1220 | | |
1219 | 1221 | | |
1220 | 1222 | | |
1221 | | - | |
| 1223 | + | |
1222 | 1224 | | |
1223 | 1225 | | |
1224 | 1226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| |||
2711 | 2711 | | |
2712 | 2712 | | |
2713 | 2713 | | |
2714 | | - | |
| 2714 | + | |
2715 | 2715 | | |
2716 | 2716 | | |
2717 | 2717 | | |
| |||
2725 | 2725 | | |
2726 | 2726 | | |
2727 | 2727 | | |
2728 | | - | |
| 2728 | + | |
2729 | 2729 | | |
2730 | 2730 | | |
2731 | 2731 | | |
| |||
3450 | 3450 | | |
3451 | 3451 | | |
3452 | 3452 | | |
3453 | | - | |
| 3453 | + | |
3454 | 3454 | | |
3455 | 3455 | | |
3456 | 3456 | | |
3457 | 3457 | | |
3458 | 3458 | | |
3459 | | - | |
| 3459 | + | |
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments