mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 21:24:26 +02:00
Add default constructor for weekday_indexed
* This enables the year_month_weekday default constructor.
This commit is contained in:
3
date.h
3
date.h
@@ -418,6 +418,7 @@ class weekday_indexed
|
|||||||
unsigned char index_ : 4;
|
unsigned char index_ : 4;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
weekday_indexed() = default;
|
||||||
CONSTCD11 weekday_indexed(const date::weekday& wd, unsigned index) NOEXCEPT;
|
CONSTCD11 weekday_indexed(const date::weekday& wd, unsigned index) NOEXCEPT;
|
||||||
|
|
||||||
CONSTCD11 date::weekday weekday() const NOEXCEPT;
|
CONSTCD11 date::weekday weekday() const NOEXCEPT;
|
||||||
@@ -6099,6 +6100,8 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
|||||||
{
|
{
|
||||||
if (wd == 7)
|
if (wd == 7)
|
||||||
wd = 0;
|
wd = 0;
|
||||||
|
else if (wd == 0)
|
||||||
|
wd = 7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (modified == CharT{'O'})
|
else if (modified == CharT{'O'})
|
||||||
|
Reference in New Issue
Block a user