In our implementation the year is always less than or equal to the
class' max(). It's unlikely this ever changes since changing the
year's range will be an ABI break. A static_assert is added as a
guard.
This was reported by @philnik.
Paths
| Differential D129442
[libc++][chrono] Avoid tautological comparisions. ClosedPublic Authored by Mordante on Jul 10 2022, 5:40 AM.
Details
Summary In our implementation the year is always less than or equal to the This was reported by @philnik.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 12 2022, 10:09 AM Closed by commit rGef25db495bdb: [libc++][chrono] Avoid tautological comparisions. (authored by Mordante). · Explain WhyJul 12 2022, 10:15 AM This revision was automatically updated to reflect the committed changes.
Diff 444001 libcxx/include/__chrono/year.h
|