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.ymdlast.members] Status: C++20 Submitter: Tomasz Kamiński Opened: 2019-06-29 Last modified: 2021-02-25
View all issues with C++20 status.
The current specification of the
function does not cover the behaviour in the situation when
value is not
ok(). To illustrate the sentence from
18.104.22.168 [time.cal.ymdlast.members] p13:
dayrepresenting the last day of the (
month) pair represented by
is unclear in the situation when
month member has
!ok value, e.g. what is last day of 14th month of 2019.
ymdl.day()(and by consequence conversion to
local_days) unspecified if
false. This make is consistent with rest of the library, that produces unspecified values in similiar situation, e.g.: 22.214.171.124 [time.cal.ymd.members] p18, 126.96.36.199 [time.cal.ymwd.members] p19, 188.8.131.52 [time.cal.ymwdlast.members] p14.
[2019-07 Issue Prioritization]
Status to Tentatively Ready after five positive votes on the reflector.
This wording is relative to N4820.
Modify 184.108.40.206 [time.cal.ymdlast.members] as indicated:
constexpr chrono::day day() const noexcept;
-13- Returns:-14- [Note: This value may be computed on demand. — end note]
Aday representing the last day of the (year, month) pair represented by *this.