Title
Expression in year::ok() returns clause is ill-formed
Status
c++20
Section
[time.cal.year.members]
Submitter
Tomasz Kamiński

Created on 2019-05-28.00:00:00 last changed 38 months ago

Messages

Date: 2019-06-13.20:43:13

Proposed resolution:

This wording is relative to N4810.

  1. Modify [time.cal.year.members] as indicated:

    constexpr bool ok() const noexcept;
    

    -18- Returns: min().y_ <= y_ && y_ <= max().y_.

Date: 2019-06-15.00:00:00

[ 2019-06-13; Priority to 0 and Status to Tentatively Ready after seven positive votes on the reflector. ]

Date: 2019-05-28.00:00:00

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 y_ member) with type year (type of year::min() and year::max()).

History
Date User Action Args
2021-02-25 10:48:01adminsetstatus: wp -> c++20
2019-07-22 15:46:37adminsetstatus: voting -> wp
2019-06-17 05:25:36adminsetstatus: ready -> voting
2019-06-13 20:43:13adminsetmessages: + msg10440
2019-06-13 20:43:13adminsetstatus: new -> ready
2019-06-08 13:46:23adminsetmessages: + msg10417
2019-05-28 00:00:00admincreate