Skip to content

Commit 022d8d8

Browse files
committed
chrono/leap_second: 例示コード修正(GCC13.2)
1 parent 2e1d2fe commit 022d8d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/chrono/leap_second.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int main()
6767
{
6868
// 2018年3月17日までにうるう秒が挿入された日を列挙する
6969
for (const chrono::leap_second& date : chrono::get_tzdb().leap_seconds) {
70-
if (date <= 2018y/3/17)
70+
if (date.date() <= chrono::sys_days{2018y/3/17})
7171
std::cout << date.date() << ": " << date.value() << std::endl;
7272
}
7373
}
@@ -114,7 +114,7 @@ int main()
114114

115115
### 処理系
116116
- [Clang](/implementation.md#clang): 9.0 [mark noimpl]
117-
- [GCC](/implementation.md#gcc): 9.2 [mark noimpl]
117+
- [GCC](/implementation.md#gcc): 9.2 [mark noimpl], 13.2 [mark verified]
118118
- [Visual C++](/implementation.md#visual_cpp): 2019 Update 3 [mark noimpl]
119119

120120

0 commit comments

Comments
 (0)