-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
9146 lines (8144 loc) · 498 KB
/
Copy pathrss.xml
File metadata and controls
9146 lines (8144 loc) · 498 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>cpprefjp - C++日本語リファレンス</title>
<link href="https://cpprefjp.github.io" />
<updated>2026-08-24T15:23:19.456880</updated>
<id>e23124f5-0072-4e31-b1aa-47eace436b6a</id>
<entry>
<title>clamp -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/algorithm/clamp.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/algorithm/clamp.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/clamp.md b/reference/algorithm/clamp.md
index f54883f9c..bf5576db3 100644
--- a/reference/algorithm/clamp.md
+++ b/reference/algorithm/clamp.md
@@ -85,3 +85,5 @@ int main()
## 参照
- [N4536 An algorithm to &#34;clamp&#34; a value between a pair of boundary values](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4536.html)
- [P0025R0 An algorithm to &#34;clamp&#34; a value between a pair of boundary values (revision 1)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0025r0.html)
+- [LWG Issue 2688. `clamp` misses preconditions and has extraneous condition on result](https://cplusplus.github.io/LWG/issue2688)
+ - C++17で、事前条件(`low`は`high`より大きくてはならない)が追加され、戻り値の規定が整理された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>sample -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/algorithm/sample.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/algorithm/sample.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/sample.md b/reference/algorithm/sample.md
index 928e6e905..1a2daa547 100644
--- a/reference/algorithm/sample.md
+++ b/reference/algorithm/sample.md
@@ -134,3 +134,5 @@ bcd
- [N4531 `std::rand` replacement, revision 3](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4531.html)
- [P0220R0 Adopt Library Fundamentals TS for C++17](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0220r0.html)
- [P0220R1 Adopt Library Fundamentals V1 TS Components for C++17 (R1)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0220r1.html)
+- [LWG Issue 2716. Specification of `shuffle` and `sample` disallows lvalue URNGs](https://cplusplus.github.io/LWG/issue2716)
+ - C++17で、乱数生成器の要件が`remove_reference_t`を通して判定されるよう整理され、左辺値の乱数生成器を渡せることが明確化された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>shuffle -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/algorithm/shuffle.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/algorithm/shuffle.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/shuffle.md b/reference/algorithm/shuffle.md
index 70a4ff8f7..05d5efd6a 100644
--- a/reference/algorithm/shuffle.md
+++ b/reference/algorithm/shuffle.md
@@ -129,5 +129,7 @@ void shuffle(RandomAccessIterator first, RandomAccessIterator last, UniformRando
- [`ranges::shuffle`](/reference/algorithm/ranges_shuffle.md)
## 参照
+- [LWG Issue 2716. Specification of `shuffle` and `sample` disallows lvalue URNGs](https://cplusplus.github.io/LWG/issue2716)
+ - C++17で、乱数生成器の要件が`remove_reference_t`を通して判定されるよう整理され、左辺値の乱数生成器を渡せることが明確化された
- [P0346R1 A `&lt;random&gt;` Nomenclature Tweak](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0346r1.pdf)
- URNGをURBGに変更
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>sort_heap -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/algorithm/sort_heap.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/algorithm/sort_heap.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/sort_heap.md b/reference/algorithm/sort_heap.md
index be74bcd79..95ce09997 100644
--- a/reference/algorithm/sort_heap.md
+++ b/reference/algorithm/sort_heap.md
@@ -47,7 +47,7 @@ namespace std {
## 計算量
-最大で N log(N) 回比較する(N == `last - first`)
+最大で 2N log(N) 回比較する(N == `last - first`)
## 例
@@ -85,3 +85,5 @@ int main()
## 参照
- [P0879R0 Constexpr for `swap` and `swap` related functions](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0879r0.html)
+- [LWG Issue 2444. Inconsistent complexity for `std::sort_heap`](https://cplusplus.github.io/LWG/issue2444)
+ - 計算量の上限が「N log(N)回」から「2N log(N)回」に修正された(`sort_heap`はN回の`pop_heap`を行うため)。この修正は欠陥報告(DR)であり、C++17にも遡及して適用される
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>emplace -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/any/any/emplace.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/any/any/emplace.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/any/any/emplace.md b/reference/any/any/emplace.md
index 69cd1cba4..d0083c493 100644
--- a/reference/any/any/emplace.md
+++ b/reference/any/any/emplace.md
@@ -99,3 +99,5 @@ int main()
## 参照
- [LWG Issue 2746. Inconsistency between requirements for `emplace` between `optional` and `variant`](https://cplusplus.github.io/LWG/issue2746)
- C++26で、`emplace`の制約が`Requires`(ハードエラー)から`Constraints`(SFINAE)に統一された(cpprefjpでは「テンプレートパラメータ制約」として記載済み)
+- [LWG Issue 2754. The `in_place` constructors and `emplace` functions added by P0032R3 don&#39;t require `CopyConstructible`](https://cplusplus.github.io/LWG/issue2754)
+ - C++17で、`emplace`に、格納する型がコピー構築可能であることの要件が追加された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>コンストラクタ -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/any/any/op_constructor.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/any/any/op_constructor.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/any/any/op_constructor.md b/reference/any/any/op_constructor.md
index 07e4cddbe..325b7a9df 100644
--- a/reference/any/any/op_constructor.md
+++ b/reference/any/any/op_constructor.md
@@ -145,3 +145,10 @@ int main()
- [GCC](/implementation.md#gcc): 7.3 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??
+
+
+## 参照
+- [LWG Issue 2744. `any`&#39;s `in_place` constructors](https://cplusplus.github.io/LWG/issue2744)
+ - C++17で、`in_place_type_t`を取るコンストラクタの`is_constructible`要件がオーバーロード解決参加条件(SFINAE)へ変更され、`any`に対する`is_constructible`問い合わせが正しい結果を返すようになった
+- [LWG Issue 2754. The `in_place` constructors and `emplace` functions added by P0032R3 don&#39;t require `CopyConstructible`](https://cplusplus.github.io/LWG/issue2754)
+ - C++17で、`in_place_type_t`を取るコンストラクタに、格納する型がコピー構築可能であることの要件が追加された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>any_cast -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/any/any_cast.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/any/any_cast.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/any/any_cast.md b/reference/any/any_cast.md
index e5d3c40e4..ca10010c9 100644
--- a/reference/any/any_cast.md
+++ b/reference/any/any_cast.md
@@ -153,4 +153,8 @@ int main()
## 参照
+- [LWG Issue 2768. `any_cast` and move semantics](https://cplusplus.github.io/LWG/issue2768)
+ - C++17で、`any_cast(any&amp;&amp;)`版がムーブによる取り出しや右辺値参照の取得を行えるよう規定された(LWG 2769の解決に取り込まれた)
+- [LWG Issue 2769. Redundant const in the return type of `any_cast(const any&amp;)`](https://cplusplus.github.io/LWG/issue2769)
+ - C++17で、`any_cast`の戻り値規定から冗長な`const`付与を除き、`U = remove_cv_t&lt;remove_reference_t&lt;ValueType&gt;&gt;`と`static_cast&lt;ValueType&gt;`を用いる形へ整理された(一時オブジェクトへのダングリング参照取得も防止)
- [LWG Issue 3305. `any_cast&lt;void&gt;`](https://cplusplus.github.io/LWG/issue3305)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>array -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/array/array.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/array/array.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/array/array.md b/reference/array/array.md
index ff8d6340f..6daca4567 100644
--- a/reference/array/array.md
+++ b/reference/array/array.md
@@ -177,3 +177,7 @@ int main()
## 参照
+- [LWG Issue 2590. Aggregate initialization for `std::array`](https://cplusplus.github.io/LWG/issue2590)
+ - C++17で、`array`がコピーリスト初期化に限らず集成体初期化一般で初期化できることが明確化された(`std::array&lt;int, 1&gt; a{0};`のような直接波カッコ初期化も適格)
+- [LWG Issue 2310. Public exposition only member in `std::array`](https://cplusplus.github.io/LWG/issue2310)
+ - C++17で、`array`が集成体であることを示す説明専用メンバ(`elems`)がpublicである旨が明確化され、`data()`の規定が`addressof(front())`を用いる形に整理された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>assert -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/cassert/assert.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/cassert/assert.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/cassert/assert.md b/reference/cassert/assert.md
index 69f21a68c..b844285e6 100644
--- a/reference/cassert/assert.md
+++ b/reference/cassert/assert.md
@@ -123,6 +123,8 @@ int main()
- [What does it mean for C++ that assert takes a scalar argument?](https://groups.google.com/a/isocpp.org/d/topic/std-discussion/6EHDRo1A2EE/discussion)
パラメータの式の型についての要件は参照規格であるCの規定によるものであり、「スカラ型」が[C++におけるスカラ型](/reference/type_traits/is_scalar.md)となるのか、あるいはCにおけるスカラ型の範囲に限定されるのか、少なくともC++14時点でははっきりしていない。
- [LWG Issue 2234. `assert()` should allow usage in constant expressions](http://wg21.cmeerw.net/lwg/issue2234)
+- [LWG Issue 2559. Error in LWG 2234&#39;s resolution](https://cplusplus.github.io/LWG/issue2559)
+ - C++17で、`assert(E)`が定数部分式となる条件を、`assert`が最後に定義/再定義された時点の`NDEBUG`の状態で判定するよう修正された
- [P2264R7 Make `assert()` macro user friendly for C and C++](https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2264r7.html)
- C++26から、カンマを含む式を条件式として使用できるようになった
- [LWG Issue 4454. `assert` should forbid `co_await` and `co_yield`](https://cplusplus.github.io/LWG/issue4454)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>operator- -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/chrono/time_point/op_minus.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/chrono/time_point/op_minus.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/chrono/time_point/op_minus.md b/reference/chrono/time_point/op_minus.md
index 53ab0bd16..4234217fb 100644
--- a/reference/chrono/time_point/op_minus.md
+++ b/reference/chrono/time_point/op_minus.md
@@ -42,11 +42,12 @@ namespace chrono {
## 戻り値
-- (1)
+- (1) : 戻り値の型を`CT`として、
```cpp
-return lhs + (-rhs);
+return CT(lhs.time_since_epoch() - rhs);
```
+* time_since_epoch[link time_since_epoch.md]
- (2)
@@ -101,3 +102,5 @@ int main()
## 参照
- [N3469 Constexpr Library Additions: chrono, v3](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3469.html)
+- [LWG Issue 2739. Issue with `time_point` non-member subtraction with an `unsigned` duration](https://cplusplus.github.io/LWG/issue2739)
+ - C++17で、(1)の戻り値が`CT(lhs.time_since_epoch() - rhs)`に変更され、符号なし`duration`で負符号化による予期しないオーバーフローが起きないようになった
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>abs -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/cmath/abs.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/cmath/abs.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/cmath/abs.md b/reference/cmath/abs.md
index 5a7ce5337..d8e6b701c 100644
--- a/reference/cmath/abs.md
+++ b/reference/cmath/abs.md
@@ -111,3 +111,7 @@ namespace std {
- C++23での、一部関数の`constexpr`対応
- [P1467R9 Extended floating-point types and standard names](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1467r9.html)
- C++23で導入された拡張浮動小数点数型への対応として、`float`、`double`、`long double`のオーバーロードを`floating-point-type`のオーバーロードに統合し、拡張浮動小数点数型も扱えるようにした
+- [LWG Issue 2192. Validity and return type of `std::abs(0u)` is unclear](https://cplusplus.github.io/LWG/issue2192)
+ - C++17で、`int`/`long`/`long long`に対するオーバーロード (6)-(8) が追加され、`int`へ整数昇格できない符号なし整数型に対する`abs`の呼び出しが不適格であることが規定された
+- [LWG Issue 2735. `std::abs(short)`, `std::abs(signed char)` and others should return `int` instead of `double`](https://cplusplus.github.io/LWG/issue2735)
+ - C++17で、`abs`は`&lt;cmath&gt;`の整数引数を`double`に変換する追加オーバーロードの対象から除外され、`short`や`signed char`などの引数に対して(整数昇格により)`int`を返すようになった(C++98/Cとの互換性のため)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>log -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/complex/complex/log.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/complex/complex/log.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/complex/complex/log.md b/reference/complex/complex/log.md
index be10de508..87797145d 100644
--- a/reference/complex/complex/log.md
+++ b/reference/complex/complex/log.md
@@ -115,3 +115,5 @@ log( (1,2) ) = (0.804719,1.10715)
## 参照
- [P1383R2 More constexpr for `&lt;cmath&gt;` and `&lt;complex&gt;`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1383r2.pdf)
- C++26で`constexpr`対応した
+- [LWG Issue 2597. `std::log` misspecified for complex numbers](https://cplusplus.github.io/LWG/issue2597)
+ - 分岐切断上での挙動(負のゼロの扱い)の意味論がCの`clog`と同じであることを意図する、と整理された。この修正は欠陥報告(DR)であり、C++17にも遡及して適用される
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>polar -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/complex/complex/polar.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/complex/complex/polar.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/complex/complex/polar.md b/reference/complex/complex/polar.md
index 8fdcfc9bc..8d83edf2d 100644
--- a/reference/complex/complex/polar.md
+++ b/reference/complex/complex/polar.md
@@ -8,11 +8,11 @@ namespace std {
template &lt;class T&gt;
complex&lt;T&gt;
polar(const T&amp; rho,
- const T&amp; theta = 0); // (1) C++03
+ const T&amp; theta = T()); // (1) C++03
template &lt;class T&gt;
constexpr complex&lt;T&gt;
polar(const T&amp; rho,
- const T&amp; theta = 0); // (1) C++26
+ const T&amp; theta = T()); // (1) C++26
}
```
@@ -27,7 +27,7 @@ namespace std {
## 備考
- 規格には、偏角 `theta` の単位については何も記載がない。しかし、この引数の単位がラジアンであることは異論をはさむ余地はないだろう。
実際、本関数の逆関数(の片割れ)とも言える [`arg`](arg.md) の戻り値はラジアンである。
-- コンストラクタのデフォルト引数を踏まえると、偏角 `theta` のデフォルト引数が `T()` ではなく `0` であるのは、規格の誤りであるように思われる。
+- 偏角 `theta` のデフォルト引数は、当初 `0` と規定されていたが、これは規格の誤りであり、LWG Issue 2870 によって `T()`(テンプレートパラメータに依存する値)に修正された。
- `rho` と `theta` に現れる型 `T` は(残念ながら)同じ型でなければならない。(`int` と `double` を渡すなどといったことはできない)
同じ [`&lt;complex&gt;`](/reference/complex.md) ヘッダの [`pow`](pow.md) や、[`cmath`](/reference/cmath.md) ヘッダの [`atan2`](/reference/cmath/atan2.md) などの関数群は、引数の型が異なっていても簡単に呼び出せるように C++11 でオーバーロードが追加されているため、単なる規格の考慮漏れかもしれない。
@@ -79,5 +79,7 @@ polar(1.0, pi / 4.0) = (0.707107,0.707107)
## 参照
+- [LWG Issue 2870. Default value of parameter theta of polar should be dependent](https://cplusplus.github.io/LWG/issue2870)
+ - 偏角`theta`のデフォルト引数が`0`から`T()`(テンプレートパラメータに依存する値)に修正された。この修正は欠陥報告(DR)であり、C++17以前にも遡及して適用される
- [P1383R2 More constexpr for `&lt;cmath&gt;` and `&lt;complex&gt;`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1383r2.pdf)
- C++26で`constexpr`対応した
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>sqrt -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/complex/complex/sqrt.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/complex/complex/sqrt.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/complex/complex/sqrt.md b/reference/complex/complex/sqrt.md
index b55fdd50b..b27f00465 100644
--- a/reference/complex/complex/sqrt.md
+++ b/reference/complex/complex/sqrt.md
@@ -134,3 +134,5 @@ sqrt(-1.0 - 1.0i) = (0.45509,-1.09868)
## 参照
- [P1383R2 More constexpr for `&lt;cmath&gt;` and `&lt;complex&gt;`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1383r2.pdf)
- C++26で`constexpr`対応した
+- [LWG Issue 2597. `std::log` misspecified for complex numbers](https://cplusplus.github.io/LWG/issue2597)
+ - 分岐切断上での挙動(負のゼロの扱い)の意味論がCの`clog`と同じであることを意図する、と整理された。この修正は欠陥報告(DR)であり、C++17にも遡及して適用される
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>INVOKE -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/concepts/Invoke.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/concepts/Invoke.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<content type="html"><div class="identifier-type">named requirement</div><div class="header">&lt;concepts&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace ">::</span><span class="token">INVOKE</span><span class="cpp cpp11" title="C++11で追加">(C++11)</span></h1>
<div itemprop="articleBody"><p>C++における関数呼び出しという性質を抽象化しまとめた、仮想操作 <em>INVOKE</em> を定義する。</p>
<ul>
<li>C++17からは、仮想操作 <em>INVOKE</em> を実体化した<code><a href="../functional/invoke.html">std::invoke</a></code>関数テンプレートが提供される。</li>
<li>C++23からは、仮想操作 <em>INVOKE</em><code>&lt;R&gt;</code> を実体化した<code><a href="../functional/invoke_r.html">std::invoke_r</a></code>関数テンプレートが提供される。</li>
</ul>
<h2>用語定義</h2>
<ul>
<li><em>call-signature</em> とは、戻り値型に続けて丸カッコの中に0個以上の引数型を並べたものである。 <em>cf.</em> <code>int ( std::string, int )</code></li>
<li><em>callable-type</em> とは、関数呼び出し演算子を適用できる型 ( 関数、関数への参照、関数へのポインタ、<code>operator ()</code> をオーバーロードした型もしくはそれを(直接または間接的に) <code>public</code> 継承した型 ) もしくはメンバへのポインタ型を指す。</li>
<li><em>callable-object</em> は、 <em>callable-type</em> 型のオブジェクトである。</li>
<li><em>call-wrapper-type</em> は、 <em>callable-object</em> を保持し、自身に対する関数呼び出し操作が行われたとき、保持しているオブジェクトに委譲する。</li>
<li><em>call-wrapper</em> は、 <em>call-wrapper-type</em> 型のオブジェクトである。</li>
<li><em>target-object</em> とは、 <em>callable-object</em> に保持されているオブジェクトのことである。</li>
</ul>
<h2>要件(C++14まで)</h2>
<ol>
<li>仮想操作 <em>INVOKE</em><code>(f, t1, t2, ..., tN)</code> を次のように定義する。<ul>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、 <code>t1</code> が T 型のオブジェクトあるいは <code>T</code> または <code>T</code> を継承した型への参照であるとき、 <code>(t1.*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、 <code>t1</code> が上記の条件に当てはまらない場合、<code>((*t1).*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code>t1</code> が <code>T</code> 型のオブジェクトあるいは <code>T</code> または <code>T</code> を継承した型への参照であるとき、 <code>t1.*f</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code>t1</code> が上記の条件に当てはまらない場合、 <code>(*t1).*f</code> と同じ効果を持つ。</li>
<li>上記の条件のどれにも当てはまらない場合、 <code>f(t1, t2, ..., tN)</code> と同じ効果を持つ。</li>
</ul>
</li>
<li><em>INVOKE</em><code>(f, t1, t2, ..., tN, R)</code> を、 <em>INVOKE</em><code>(f, t1, t2, ..., tN)</code> の実行結果の戻り値が型 <code>R</code> に暗黙的に変換されること、と定義する。</li>
<li><em>call-wrapper</em> が <em>weak-result-type</em> を用意している場合、メンバ型 <code>result_type</code> は<em>target-object</em> の型 <code>T</code> に応じて次のように定義される。<ul>
<li><code>T</code> が関数へのポインタ型であるとき、 <code>result_type</code> は <code>T</code> の戻り値型と等しい。</li>
<li><code>T</code> がメンバ関数へのポインタ型であるとき、 <code>result_type</code> は <code>T</code> の戻り値型と等しい。</li>
<li><code>T</code> が <code>result_type</code> という名前のメンバ型を持つとき、 <code>result_type</code> は <code>T::result_type</code> と等しい。</li>
<li>どの条件にも当てはまらない場合、 <code>result_type</code> は定義されない。</li>
</ul>
</li>
<li>すべての <em>call-wrapper</em> は、<em>MoveAssignable</em> でなければならない。</li>
</ol>
<h2>要件(C++17)</h2>
<ol>
<li>仮想操作 <em>INVOKE</em><code>(f, t1, t2, ..., tN)</code> を次のように定義する。<ul>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、<code><a href="../type_traits/is_base_of.html">is_base_of_v</a>&lt;T, <a href="../type_traits/decay.html">decay_t</a>&lt;decltype(t1)&gt;&gt; == true</code>(<code>t1</code> が <code>T</code> または <code>T</code> を継承した型のオブジェクト/参照)であるとき、 <code>(t1.*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、<code><a href="../type_traits/decay.html">decay_t</a>&lt;decltype(t1)&gt;</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper&lt;T&gt;</a></code>(<code>t1</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper</a></code>の特殊化)であるとき、 <code>(t1.get().*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、 <code>t1</code> が上記の条件に当てはまらない場合(例えば、t1が<code>T</code>のポインタ)、<code>((*t1).*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code><a href="../type_traits/is_base_of.html">is_base_of_v</a>&lt;T, <a href="../type_traits/decay.html">decay_t</a>&lt;decltype(t1)&gt;&gt; == true</code>(<code>t1</code> が <code>T</code> または <code>T</code> を継承した型のオブジェクト/参照)であるとき、 <code>t1.*f</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code><a href="../type_traits/decay.html">decay_t</a>&lt;decltype(t1)&gt;</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper&lt;T&gt;</a></code>(<code>t1</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper</a></code>の特殊化)であるとき、 <code>t1.get().*f</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code>t1</code> が上記の条件に当てはまらない場合(例えば、t1が<code>T</code>のポインタ)、 <code>(*t1).*f</code> と同じ効果を持つ。</li>
<li>上記の条件のどれにも当てはまらない場合、 <code>f(t1, t2, ..., tN)</code> と同じ効果を持つ。</li>
</ul>
</li>
<li><em>INVOKE</em><code>&lt;R&gt;(f, t1, t2, ..., tN)</code> を次のように定義する。<ul>
<li><code>R</code>が<code>void</code>かそのcv修飾の場合は、<code>static_cast&lt;void&gt;(</code><em>INVOKE</em><code>(f, t1, t2, ..., tN))</code>。</li>
<li>それ以外の場合は、<em>INVOKE</em><code>(f, t1, t2, ..., tN)</code> の実行結果の戻り値が型 <code>R</code> に暗黙的に変換されること。</li>
</ul>
</li>
<li>すべての <em>call-wrapper</em> は、<em>MoveConstructible</em> でなければならない。</li>
</ol>
<h2>要件(C++20)</h2>
<ol>
<li>仮想操作 <em>INVOKE</em><code>(f, t1, t2, ..., tN)</code> を次のように定義する。<ul>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、<code><a href="../type_traits/is_same.html">is_same_v</a>&lt;T, <a href="../type_traits/remove_cvref.html">remove_cvref_t</a>&lt;decltype(t1)&gt;&gt; ||<a href="../type_traits/is_base_of.html">is_base_of_v</a>&lt;T, <a href="../type_traits/remove_cvref.html">remove_cvref_t</a>&lt;decltype(t1)&gt;&gt;</code> が <code>true</code>(<code>t1</code> が <code>T</code> または <code>T</code> を継承した型のオブジェクト/参照)であるとき、 <code>(t1.*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、<code><a href="../type_traits/remove_cvref.html">remove_cvref_t</a>&lt;decltype(t1)&gt;</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper&lt;T&gt;</a></code>(<code>t1</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper</a></code>の特殊化)であるとき、 <code>(t1.get().*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>f</code> が型 <code>T</code> のメンバ関数へのポインタであり、 <code>t1</code> が上記の条件に当てはまらない場合(例えば、t1が<code>T</code>のポインタ)、<code>((*t1).*f)(t2, ..., tN)</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code><a href="../type_traits/is_same.html">is_same_v</a>&lt;T, <a href="../type_traits/remove_cvref.html">remove_cvref_t</a>&lt;decltype(t1)&gt;&gt; ||<a href="../type_traits/is_base_of.html">is_base_of_v</a>&lt;T, <a href="../type_traits/remove_cvref.html">remove_cvref_t</a>&lt;decltype(t1)&gt;&gt;</code> が <code>true</code>(<code>t1</code> が <code>T</code> または <code>T</code> を継承した型のオブジェクト/参照)であるとき、 <code>t1.*f</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code><a href="../type_traits/remove_cvref.html">remove_cvref_t</a>&lt;decltype(t1)&gt;</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper&lt;T&gt;</a></code>(<code>t1</code>が<code><a href="../functional/reference_wrapper.html">reference_wrapper</a></code>の特殊化)であるとき、 <code>t1.get().*f</code> と同じ効果を持つ。</li>
<li><code>N == 1</code> で、<code>f</code> が型 <code>T</code> のメンバオブジェクトへのポインタであり、<code>t1</code> が上記の条件に当てはまらない場合(例えば、t1が<code>T</code>のポインタ)、 <code>(*t1).*f</code> と同じ効果を持つ。</li>
<li>上記の条件のどれにも当てはまらない場合、 <code>f(t1, t2, ..., tN)</code> と同じ効果を持つ。</li>
</ul>
</li>
<li><em>INVOKE</em><code>&lt;R&gt;(f, t1, t2, ..., tN)</code> を次のように定義する。<ul>
<li><code>R</code>が<code>void</code>かそのcv修飾の場合は、<code>static_cast&lt;void&gt;(</code><em>INVOKE</em><code>(f, t1, t2, ..., tN))</code>。</li>
<li>それ以外の場合は、<em>INVOKE</em><code>(f, t1, t2, ..., tN)</code> の実行結果の戻り値が型 <code>R</code> に暗黙的に変換されること。</li>
</ul>
</li>
<li>すべての <em>call-wrapper</em> は、<em>Cpp17MoveConstructible</em> かつ <em>Cpp17Destructible</em> でなければならない。</li>
</ol>
<h2>要件(C++23差分)</h2>
<p>C++20 における 2. について、次の文言を項目の最後に追加する。この変更は、<code>R</code>が参照かつ<em>INVOKE</em>の実行結果が<code>R</code>に束縛されることで寿命が延長される場合にダングリング参照が作成されてしまう事例を検出するための要件である。</p>
<ul>
<li><code><a href="../type_traits/reference_converts_from_temporary.html">reference_converts_from_temporary_v</a>&lt;R, decltype(</code><em>INVOKE</em><code>(f, t1, t2, …, tN))&gt; == true</code>の場合、<em>INVOKE</em><code>&lt;R&gt;(f, t1, t2, …, tN)</code>は<a class="cpprefjp-defined-word">不適格</a>。</li>
</ul>
<h2>まとめ</h2>
<p><a href="https://twitter.com/Cryolite/status/216814363221303296" target="_blank">第1引数がメンバ関数へのポインタの場合でも非静的メンバデータへのポインタの場合でも,第2引数がクラスオブジェクトへの参照の場合でもポインタの場合でもポインタっぽいものの場合でも,なんか知らんけどそれっぽく上手くいく</a> ように取り計らった操作のことである。</p>
<h2>関連項目</h2>
<ul>
<li><code><a href="../functional/function.html">function</a></code></li>
<li><code><a href="../functional/reference_wrapper.html">reference_wrapper</a></code></li>
<li><code><a href="../functional/bind.html">bind</a></code></li>
<li><code><a href="../functional/mem_fn.html">mem_fn</a></code></li>
<li><code><a href="../functional/not_fn.html">not_fn</a></code></li>
<li><code><a href="../thread/thread.html">thread</a></code></li>
<li><code><a href="../future/async.html">async</a></code></li>
<li><code><a href="../future/packaged_task.html">packaged_task</a></code></li>
<li><code><a href="../mutex/call_once.html">call_once</a></code></li>
</ul>
<h2>参照</h2>
<ul>
<li><a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0777r1.pdf" target="_blank">P0777R1 Treating Unnecessary <code>decay</code></a><ul>
<li>C++20から<code>decay_t</code>を<code>remove_cvref_t</code>へ変更。</li>
</ul>
</li>
<li><a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2136r3.html" target="_blank">P2136R3 <code>invoke_r</code></a></li>
<li><a href="https://cplusplus.github.io/LWG/issue2219" target="_blank">LWG Issue 2219. <code>INVOKE</code>-ing a pointer to member with a <code>reference_wrapper</code> as the object expression</a><ul>
<li>C++17で、メンバポインタに対する第1引数が<code><a href="../functional/reference_wrapper.html">reference_wrapper</a></code>の特殊化である場合に、<code>t1.get()</code>経由でメンバを呼び出すよう規定された</li>
</ul>
</li>
<li><a href="https://cplusplus.github.io/LWG/issue3655" target="_blank">LWG Issue 3655. The <em>INVOKE</em> operation and union types</a><ul>
<li>C++23で、メンバポインタの判定を<code>is_base_of_v</code>単独から<code>is_same_v || is_base_of_v</code>に変更し、共用体(union)型でも正しく扱えるようにした</li>
</ul>
</li>
</ul></div></content>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>offsetof -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/cstddef/offsetof.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/cstddef/offsetof.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/cstddef/offsetof.md b/reference/cstddef/offsetof.md
index f8a757c7f..f10fd6b15 100644
--- a/reference/cstddef/offsetof.md
+++ b/reference/cstddef/offsetof.md
@@ -51,3 +51,8 @@ offsetof(mystruct,singlechar) is 0
offsetof(mystruct,arraymember) is 1
offsetof(mystruct,anotherchar) is 11
```
+
+
+## 参照
+- [LWG Issue 2709. `offsetof` is unnecessarily imprecise](https://cplusplus.github.io/LWG/issue2709)
+ - C++17で、標準レイアウトでないクラス型に対する`offsetof`の利用が「未定義動作」から「条件付きサポート」に変更された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>abs -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/cstdlib/abs.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/cstdlib/abs.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md
index 16c7a0c25..0010c4e81 100644
--- a/reference/cstdlib/abs.md
+++ b/reference/cstdlib/abs.md
@@ -106,3 +106,5 @@ int main()
- C++23での、一部関数の`constexpr`対応
- [P1467R9 Extended floating-point types and standard names](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1467r9.html)
- C++23で導入された拡張浮動小数点数型への対応として、`float`、`double`、`long double`のオーバーロードを`floating-point-type`のオーバーロードに統合し、拡張浮動小数点数型も扱えるようにした
+- [LWG Issue 2192. Validity and return type of `std::abs(0u)` is unclear](https://cplusplus.github.io/LWG/issue2192)
+ - C++17で、`int`へ整数昇格できない符号なし整数型に対する`abs`の呼び出しが不適格であることが規定された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>erase -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/deque/deque/erase.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/deque/deque/erase.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/deque/deque/erase.md b/reference/deque/deque/erase.md
index 327cae362..59344a140 100644
--- a/reference/deque/deque/erase.md
+++ b/reference/deque/deque/erase.md
@@ -26,11 +26,15 @@ constexpr iterator erase(const_iterator first, const_iterator last); // (2) C++2
## 戻り値
-削除された要素の次の要素を指すイテレータを返す。そのような要素が存在しない場合は、[`end()`](end.md)を返す。さらに、削除された要素以降の要素の数と同じ回数の`T`のムーブ代入演算子が呼ばれる。
+削除された要素の次の要素を指すイテレータを返す。そのような要素が存在しない場合は、[`end()`](end.md)を返す。
+
+
+## 例外
+`T`の代入演算子が例外を投げる場合を除いて、この関数は例外を投げない。この関数はメモリの確保・解放や要素の構築を行わないため、コンストラクタは呼ばれない。
## 計算量
-削除された要素の数に対して線形時間(デストラクタ呼び出し)。加えて、`position`と終端位置の間にある要素の数に対してライブラリの実装に依存して線形時間で増加する。
+削除される要素の数と同じ回数の`T`のデストラクタが実行される。加えて`T`の代入演算子が呼ばれるが、その回数は「削除された要素より前にある要素数」と「削除された要素より後にある要素数」のうち少ない方以下となる(`deque`は前後どちらからでも要素を詰められるため)。
## 例
@@ -112,4 +116,6 @@ int main()
## 参照
- [N2350 Container insert/erase and iterator constness (Revision 1)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2350.pdf)
- [LWG Issue 638. `deque` end invalidation during erase](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638)
+- [LWG Issue 2953. LWG 2853 should apply to `deque::erase` too](https://cplusplus.github.io/LWG/issue2953)
+ - `erase`はメモリ確保・要素構築を行わないため、例外指定からコンストラクタへの言及が削除され`T`の代入演算子のみとされた(`vector::erase`のLWG 2853と同様)。この修正は欠陥報告(DR)であり、C++17にも遡及して適用される
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>shrink_to_fit -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/deque/deque/shrink_to_fit.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/deque/deque/shrink_to_fit.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/deque/deque/shrink_to_fit.md b/reference/deque/deque/shrink_to_fit.md
index 0207f3fef..eb7d288cb 100644
--- a/reference/deque/deque/shrink_to_fit.md
+++ b/reference/deque/deque/shrink_to_fit.md
@@ -21,7 +21,7 @@ constexpr void shrink_to_fit(); // (1) C++26
## 効果
- 確保した未使用のメモリ領域を[`size()`](size.md)に縮小させるというリクエストを行う。
- 実装依存の最適化を許可するために、縮小するという動作は仕様上強制されない。
-- C++17 : コンテナの要素に対する参照、ポインタ、およびイテレータとそれが指す要素への参照は無効となる。
+- C++17 : シーケンスの要素を指すすべての参照・ポインタ・イテレータ、および終端イテレータ(past-the-end iterator)が無効となる。
- C++17 : コピー挿入可能でない型`T`のムーブコンストラクタによる例外を除き、例外が送出された場合この関数は何もしない。
@@ -57,4 +57,6 @@ constexpr void shrink_to_fit(); // (1) C++26
- [LWG Issue 850. Should `shrink_to_fit` apply to `std::deque`?](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#850)
- [LWG Issue 2033. Preconditions of `reserve`, `shrink_to_fit`, and `resize` functions](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2033)
- [LWG Issue 2223. `shrink_to_fit` effect on iterator validity](https://wg21.cmeerw.net/lwg/issue2223)
+- [LWG Issue 2834. Resolution to LWG 2223 is missing wording about end iterators](https://cplusplus.github.io/LWG/issue2834)
+ - C++17で、終端イテレータ(past-the-end iterator)も無効化されることが明確化された
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>rethrow_if_nested -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/exception/rethrow_if_nested.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/exception/rethrow_if_nested.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/exception/rethrow_if_nested.md b/reference/exception/rethrow_if_nested.md
index 7fd4b077a..fbfd04b2b 100644
--- a/reference/exception/rethrow_if_nested.md
+++ b/reference/exception/rethrow_if_nested.md
@@ -17,15 +17,16 @@ namespace std {
## 効果
-型`E`が[`nested_exception`](/reference/exception/nested_exception.md)を継承した型だった場合、以下の処理を行う:
+- 型`E`が多相的(polymorphic)なクラス型でない場合、または[`nested_exception`](/reference/exception/nested_exception.md)が`E`のアクセス不能もしくは曖昧な基底クラスである場合、何もしない。
+- そうでなければ、以下を行う:
-```cpp
-dynamic_cast&lt;const nested_exception&amp;&gt;(e).rethrow_nested()
-```
-* nested_exception[link nested_exception.md]
-* rethrow_nested()[link nested_exception/rethrow_nested.md]
-
-そうでなければ何もしない。
+ ```cpp
+ if (auto p = dynamic_cast&lt;const nested_exception*&gt;(addressof(e)))
+ p-&gt;rethrow_nested();
+ ```
+ * nested_exception[link nested_exception.md]
+ * rethrow_nested()[link nested_exception/rethrow_nested.md]
+ * addressof[link /reference/memory/addressof.md]
## 戻り値
@@ -124,3 +125,9 @@ inner
## 参照
- [P3842R2 A conservative fix for constexpr `uncaught_exceptions()` and `current_exception()`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3842r2.pdf)
- C++26の策定中に`constexpr`が追加されたが、本提案文書により巻き戻された (C++29で再検討予定)
+- [LWG Issue 2484. `rethrow_if_nested()` is doubly unimplementable](https://cplusplus.github.io/LWG/issue2484)
+ - 型`E`が多相的でない場合は何もしないこと、および`e`の静的型が[`nested_exception`](nested_exception.md)であるかそこからpublicかつ曖昧さなく派生している場合を対象とすることが規定された
+ - この修正は欠陥報告(DR)であり、C++11以降に遡及して適用される。 C++11時点の規定は「`e`の動的型が`nested_exception`から派生しているか」で判定するとしていたが、非多相なクラス型では動的型を判別する`dynamic_cast`自体が不適格となるため、規定どおりに実装することが不可能だった。したがって処理系は当初からこの修正後の挙動(非多相型では何もしない)を採るしかなく、これと異なる観測可能な挙動が出荷されていたわけではない
+- [LWG Issue 2784. Resolution to LWG 2484 is missing &#34;otherwise, no effects&#34; and is hard to parse](https://cplusplus.github.io/LWG/issue2784)
+ - LWG 2484の解決を整理し、静的型の判定と動的型の判定を分離して、効果をポインタ版`dynamic_cast`とヌルチェックを用いる形に書き直した。あわせて、条件を満たさない場合は何もしないことが明記された
+ - この修正も欠陥報告(DR)であり、C++11以降に遡及して適用される。 LWG 2484と同じ規定を読みやすく書き換えたものであり、意図された挙動は変わらないため
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>terminate -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/exception/terminate.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/exception/terminate.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/exception/terminate.md b/reference/exception/terminate.md
index e1d0d7395..c46df3c16 100644
--- a/reference/exception/terminate.md
+++ b/reference/exception/terminate.md
@@ -52,6 +52,10 @@ namespace std {
投げない
+## 備考
+例外がアクティブな状態(例外処理中)で[`set_terminate()`](set_terminate.md)によって終了ハンドラが変更された場合、その後に`terminate()`が呼び出されたときにどのハンドラが呼び出されるかは未規定である。例外処理を開始する前に一度だけハンドラを設定する通常の使い方では、常に設定したハンドラが呼び出される。
+
+
## 例
```cpp example
#include &lt;iostream&gt;
@@ -81,3 +85,6 @@ terminate called without an active exception
- [`set_terminate`](set_terminate.md)
- `terminate`が呼び出される状況
- N3337 15.5.1 The `std::terminate()` function `[except.terminal]`
+- [LWG Issue 2111. Which unexpected/terminate handler is called from the exception handling runtime?](https://cplusplus.github.io/LWG/issue2111)
+ - 例外がアクティブな状態でハンドラが変更された場合、どのハンドラが呼び出されるかは未規定と明確化された
+ - この修正は欠陥報告(DR)であり、C++11以降に遡及して適用される。もともと処理系(Itanium ABI等)の実際の挙動が分かれていた領域を未規定として追認したものであり、規定の変更によって処理系の挙動が変わるわけではないため
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>throw_with_nested -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/exception/throw_with_nested.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/exception/throw_with_nested.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/exception/throw_with_nested.md b/reference/exception/throw_with_nested.md
index 89256523e..786a1f69e 100644
--- a/reference/exception/throw_with_nested.md
+++ b/reference/exception/throw_with_nested.md
@@ -15,8 +15,15 @@ namespace std {
現在処理中の例外を入れ子にした例外を送出する
-## 要件
-型`T`がコピーコンストラクト可能であること。
+## 事前条件
+`U`を [`decay_t`](/reference/type_traits/decay.md)`&lt;T&gt;` として、型`U`がコピー構築可能(*Cpp17CopyConstructible*)の要件を満たすこと。
+
+
+## 例外
+`U`を [`decay_t`](/reference/type_traits/decay.md)`&lt;T&gt;` とする。
+
+- [`is_class_v`](/reference/type_traits/is_class.md)`&lt;U&gt; &amp;&amp; !`[`is_final_v`](/reference/type_traits/is_final.md)`&lt;U&gt; &amp;&amp; !`[`is_base_of_v`](/reference/type_traits/is_base_of.md)`&lt;`[`nested_exception`](nested_exception.md)`, U&gt;`が`true`である場合、`U`と[`nested_exception`](nested_exception.md)の両方からpublic派生した未規定の型のオブジェクトを、`std::`[`forward`](/reference/utility/forward.md)`&lt;T&gt;(t)`から構築して送出する。
+- そうでない場合、`std::`[`forward`](/reference/utility/forward.md)`&lt;T&gt;(t)`を送出する。
## 戻り値
@@ -116,3 +123,9 @@ inner
## 参照
- [P3842R2 A conservative fix for constexpr `uncaught_exceptions()` and `current_exception()`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3842r2.pdf)
- C++26の策定中に`constexpr`が追加されたが、本提案文書により巻き戻された (C++29で再検討予定)
+- [LWG Issue 2483. `throw_with_nested()` should use `is_final`](https://cplusplus.github.io/LWG/issue2483)
+ - ラップするかどうかの判定に[`is_final`](/reference/type_traits/is_final.md)による条件が追加され、`final`指定されたクラスも引数に取れるようになった
+ - この修正は欠陥報告(DR)であり、C++11以降に遡及して適用される。`final`指定されたクラスから派生した型を送出するという元の規定は実装不可能であり、処理系は当初から派生させずにそのまま送出していたため、これと異なる観測可能な挙動が出荷されていたわけではない
+- [LWG Issue 2855. `std::throw_with_nested(&#34;string_literal&#34;)`](https://cplusplus.github.io/LWG/issue2855)
+ - 判定に[`decay_t`](/reference/type_traits/decay.md)`&lt;T&gt;`を用いるよう変更され、文字列リテラルや関数など(配列型・関数型)を渡せることが明確化された
+ - この修正は欠陥報告(DR)であり、C++11以降に遡及して適用される。配列型・関数型を排除していた元の要件は文言上の欠陥であり、処理系は当初から`decay`後の型で動作していたため
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>copy_file -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/copy_file.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/copy_file.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/copy_file.md b/reference/filesystem/copy_file.md
index 6667ec866..9c835941f 100644
--- a/reference/filesystem/copy_file.md
+++ b/reference/filesystem/copy_file.md
@@ -30,7 +30,7 @@ namespace std::filesystem {
- (2) : `return copy_file(from, to,` [`copy_options::none`](copy_options.md)`, ec);`
- (3) :
- 以下のいずれかの場合にエラーとなる:
- - `!`[`is_regular_file`](is_regular_file.md)`(from)` (コピー元のファイルが存在しない)
+ - `!`[`is_regular_file`](is_regular_file.md)`(from)` (コピー元が通常ファイルでない)
- [`exists`](exists.md)`(to) &amp;&amp; !`[`is_regular_file`](is_regular_file.md)`(to)` (コピー先に、通常ファイルではないファイルが存在している)
- [`exists`](exists.md)`(to) &amp;&amp;` [`equivalent`](equivalent.md)`(from, to)` (コピー先にファイルが存在しており、それがコピー元と等価)
- [`exists`](exists.md)`(to) &amp;&amp; (options &amp; (`[`copy_options::skip_existing`](copy_options.md) `|` [`copy_options::overwrite_existing`](copy_options.md) `|` [`copy_options::update_existing`](copy_options.md)`)) ==` [`copy_options::none`](copy_options.md) (コピー先にファイルが存在しており、その場合にエラーにならないオプションが指定されていない)
@@ -98,5 +98,7 @@ int main()
## 参照
+- [LWG Issue 2712. `copy_file(from, to, ...)` has a number of unspecified error conditions](https://cplusplus.github.io/LWG/issue2712)
+ - C++17の策定中に、`!is_regular_file(from)`(コピー元が通常ファイルでない)と`exists(to) &amp;&amp; !is_regular_file(to)`(コピー先が存在するが通常ファイルでない)の2つがエラー条件として追加された
- [LWG Issue 2849. Why does `!is_regular_file(from)` cause `copy_file` to report a &#34;file already exists&#34; error?](https://wg21.cmeerw.net/lwg/issue2849)
- [LWG Issue 3014. More `noexcept` issues with filesystem operations](https://wg21.cmeerw.net/lwg/issue3014)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>create_directories -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/create_directories.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/create_directories.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/create_directories.md b/reference/filesystem/create_directories.md
index 50bbeaceb..3e2e499d4 100644
--- a/reference/filesystem/create_directories.md
+++ b/reference/filesystem/create_directories.md
@@ -71,4 +71,7 @@ int main()
## 参照
+- [LWG Issue 2935. What should `create_directories` do when `p` already exists but is not a directory?](https://cplusplus.github.io/LWG/issue2935)
+ - `p`が解決する新しいディレクトリが作成された場合のみ`true`を返す旨が明確化され、事後条件`is_directory(p)`が削除された
+ - この修正は欠陥報告(DR)であり、C++17に遡及して適用される。元の事後条件`is_directory(p)`は、ディレクトリ作成の失敗後に状態を取得する追加のシステムコールを発行しなければ保証できない意図しない規定であり、処理系は当初から本ページの挙動を採っていたため
- [LWG Issue 3014. More `noexcept` issues with filesystem operations](https://wg21.cmeerw.net/lwg/issue3014)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>create_directory -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/create_directory.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/create_directory.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/create_directory.md b/reference/filesystem/create_directory.md
index fc54600c6..1802611d3 100644
--- a/reference/filesystem/create_directory.md
+++ b/reference/filesystem/create_directory.md
@@ -86,5 +86,9 @@ int main()
## 参照
+- [LWG Issue 2935. What should `create_directories` do when `p` already exists but is not a directory?](https://cplusplus.github.io/LWG/issue2935)
+ - 事後条件`is_directory(p)`が削除された
+ - この修正は欠陥報告(DR)であり、C++17に遡及して適用される。元の事後条件は、ディレクトリ作成の失敗後に状態を取得する追加のシステムコールを発行しなければ保証できない意図しない規定であり、処理系の挙動は変わらないため
+ - なお本issueは「パスが既に存在する場合はエラーとしない」形にも緩和したが、これは同じC++20でP1164R1により差し戻された。現在は「既存のディレクトリとして解決されたために作成が失敗した場合はエラーとしない」という本ページの記述となっている
- [LWG Issue 3079. LWG 2935 forgot to fix the `existing_p` overloads of `create_directory`](https://cplusplus.github.io/LWG/issue3079)
- C++20で、既存アタッチメントを取る`existing_p`版オーバーロードも、指定したパスがすでにディレクトリとして存在する場合にエラーとしないよう修正された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>コンストラクタ -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/directory_iterator/op_constructor.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/directory_iterator/op_constructor.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/directory_iterator/op_constructor.md b/reference/filesystem/directory_iterator/op_constructor.md
index 8b5d4a044..76efd2be9 100644
--- a/reference/filesystem/directory_iterator/op_constructor.md
+++ b/reference/filesystem/directory_iterator/op_constructor.md
@@ -37,6 +37,7 @@ directory_iterator(directory_iterator&amp;&amp; rhs) noexcept; // (7)
- (3), (5) :
- (2), (4)に加えて、
- パス`p`へのアクセスが拒否された場合、`options`として[`directory_options::skip_permission_denied`](/reference/filesystem/directory_options.md)が指定されていれば、エラー報告をせず、終端イテレータを構築する
+- (2)〜(5) : 構築時にエラーが発生した場合、`*this`は特異な状態にはならず、終端イテレータと等しくなる
- (6) : `rhs`を`*this`にコピーする。`rhs`と`*this`が同じオブジェクトである場合はなにもしない
- (7) : `rhs`の所有権を`*this`に移動する。`rhs`と`*this`が同じオブジェクトである場合はなにもしない
@@ -115,4 +116,6 @@ int main()
## 参照
+- [LWG Issue 2723. Do `directory_iterator` and `recursive_directory_iterator` become the end iterator upon error?](https://cplusplus.github.io/LWG/issue2723)
+ - C++17の策定中に、構築やインクリメントでエラーが発生した場合、イテレータは特異状態ではなく終端イテレータと等しくなることが規定された(それ以前は処理系間で挙動が分かれていた)
- [LWG Issue 3013. `(recursive_)directory_iterator` construction and traversal should not be `noexcept`](https://wg21.cmeerw.net/lwg/issue3013)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>equivalent -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/equivalent.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/equivalent.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/equivalent.md b/reference/filesystem/equivalent.md
index b016213a7..92506f307 100644
--- a/reference/filesystem/equivalent.md
+++ b/reference/filesystem/equivalent.md
@@ -19,13 +19,15 @@ namespace std::filesystem {
## 戻り値
-- [`status`](status.md)`(p1)`を`s1`、[`status`](status.md)`(p2)`を`s2`として、
-- `s1 == s2`かつ`p1`と`p2`がファイルシステムとして等価のエンティティに解決される場合、`true`を返し、そうでなければ`false`を返す
-- `p1`と`p2`両方のエンティティが存在しない、`p1`と`p2`両方が[`is_other()`](is_other.md)で`true`を返す種別のエンティティである場合、およびファイルシステムでエラーが発生した場合、 (1) では[`std::filesystem::filesystem_error`](filesystem_error.md)例外を送出し、 (2) では`ec`にエラー情報が設定されて`false`が返る
+- C++17 : [`status`](status.md)`(p1)`を`s1`、[`status`](status.md)`(p2)`を`s2`として、`s1 == s2`かつ`p1`と`p2`がファイルシステムとして等価のエンティティに解決される場合、`true`を返し、そうでなければ`false`を返す
+- C++20 : `p1`と`p2`がファイルシステムとして等価のエンティティに解決される場合、`true`を返し、そうでなければ`false`を返す
+- エラーとなる条件は以下である。 (1) では[`std::filesystem::filesystem_error`](filesystem_error.md)例外を送出し、 (2) では`ec`にエラー情報が設定されて`false`が返る
+ - C++17 : `p1`と`p2`両方のエンティティが存在しない、または`p1`と`p2`両方が[`is_other()`](is_other.md)で`true`を返す種別のエンティティである場合。およびファイルシステムでエラーが発生した場合
+ - C++20 : `p1`と`p2`のいずれか一方でもエンティティが存在しない場合(`!`[`exists`](exists.md)`(p1) || !`[`exists`](exists.md)`(p2)`)。およびファイルシステムでエラーが発生した場合
## 例外
-- (1) : ファイルシステムがエラーを報告する場合がある。それに加えて、`p1`と`p2`両方のエンティティが存在しない、`p1`と`p2`両方が[`is_other()`](is_other.md)で`true`を返す種別のエンティティである場合もエラーである。エラーが発生した場合は、[`std::filesystem::filesystem_error`](filesystem_error.md)例外を送出する
+- (1) : ファイルシステムがエラーを報告する場合がある。それに加えて、上記「戻り値」に挙げた条件もエラーである。エラーが発生した場合は、[`std::filesystem::filesystem_error`](filesystem_error.md)例外を送出する
- (2) : 投げない
@@ -76,3 +78,10 @@ int main()
- [Clang](/implementation.md#clang): 7.0 [mark verified]
- [GCC](/implementation.md#gcc): 8.1 [mark verified]
- [Visual C++](/implementation.md#visual_cpp):
+
+
+## 参照
+- [LWG Issue 2722. `equivalent` incorrectly specifies throws clause](https://cplusplus.github.io/LWG/issue2722)
+ - C++17の策定中に、エラー報告の詳細を効果節へ移し、`noexcept`な`error_code`版と例外送出版の双方で正しく扱えるよう整理された
+- [LWG Issue 2937. Is `equivalent(&#34;existing_thing&#34;, &#34;not_existing_thing&#34;)` an error?](https://cplusplus.github.io/LWG/issue2937)
+ - C++20で、`p1`と`p2`のいずれか一方でも存在しない場合はエラーとなるよう変更された(C++17では両方が存在しない場合のみエラー)。あわせて`is_other`による条件と、戻り値の`s1 == s2`の条件が削除された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>コンストラクタ -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/file_status/op_constructor.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/file_status/op_constructor.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/file_status/op_constructor.md b/reference/filesystem/file_status/op_constructor.md
index 619a7194d..71ebc457d 100644
--- a/reference/filesystem/file_status/op_constructor.md
+++ b/reference/filesystem/file_status/op_constructor.md
@@ -62,3 +62,8 @@ int main()
- [Clang](/implementation.md#clang):
- [GCC](/implementation.md#gcc): 4.8.1 [mark verified]
- [Visual C++](/implementation.md#visual_cpp):
+
+
+## 参照
+- [LWG Issue 2787. [file_status.cons] doesn&#39;t match class definition](https://cplusplus.github.io/LWG/issue2787)
+ - C++17の策定中に、非explicitなデフォルトコンストラクタ(1)と、explicitな引数付きコンストラクタ(2)という形にクラス定義と整合するよう整理された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>is_empty -- Merge pull request #1744 from cpprefjp/cpp17_lib_issues</title>
<link href="https://cpprefjp.github.io/reference/filesystem/is_empty.html"/>
<id>df1b5432d7dc3874584192f7af11e41abb2951f0:reference/filesystem/is_empty.md</id>
<updated>2026-08-25T00:21:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/filesystem/is_empty.md b/reference/filesystem/is_empty.md
index 8e79fb66e..b5415992b 100644