This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++20 status.
Section: 220.127.116.11 [time.cal.year.members] Status: C++20 Submitter: Tomasz Kamiński Opened: 2019-05-28 Last modified: 2021-02-25
View all issues with C++20 status.
The expression in the Returns element of
year::ok in [time.cal.year.members] p18:
min() <= y_ && y_ <= max()
is ill-formed, as it attempts to compare type
short (type of
member) with type
year (type of
[2019-06-13; Priority to 0 and Status to Tentatively Ready after seven positive votes on the reflector.]
This wording is relative to N4810.
Modify 18.104.22.168 [time.cal.year.members] as indicated:
constexpr bool ok() const noexcept;
-18- Returns: min() <= y_ && y_ <= max().