forked from HowardHinnant/date
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;
|
||||
|
||||
public:
|
||||
weekday_indexed() = default;
|
||||
CONSTCD11 weekday_indexed(const date::weekday& wd, unsigned index) 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)
|
||||
wd = 0;
|
||||
else if (wd == 0)
|
||||
wd = 7;
|
||||
}
|
||||
}
|
||||
else if (modified == CharT{'O'})
|
||||
|
Reference in New Issue
Block a user