mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Renamed date_literals to date::literals and corrected placement.
This commit is contained in:
parent
386d2b8c9d
commit
c5f307fdb8
22
date.h
22
date.h
@ -738,9 +738,7 @@ operator-(const year_month_weekday_last& ymwdl, const years& dy) noexcept;
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const year_month_weekday_last& ymwdl);
|
||||
|
||||
} // namespace date
|
||||
|
||||
inline namespace date_literals
|
||||
inline namespace literals
|
||||
{
|
||||
|
||||
CONSTCD11 date::day operator "" _d(unsigned long long d) noexcept;
|
||||
@ -767,10 +765,7 @@ CONSTCD11 date::year operator "" _y(unsigned long long y) noexcept;
|
||||
// CONSTDATA date::weekday fri{5u};
|
||||
// CONSTDATA date::weekday sat{6u};
|
||||
|
||||
} // inline namespace date_literals
|
||||
|
||||
namespace date
|
||||
{
|
||||
} // inline namespace literals
|
||||
|
||||
//----------------+
|
||||
// Implementation |
|
||||
@ -1443,9 +1438,7 @@ operator<<(std::ostream& os, const weekday& wd)
|
||||
return os;
|
||||
}
|
||||
|
||||
} // namespace date
|
||||
|
||||
inline namespace date_literals
|
||||
inline namespace literals
|
||||
{
|
||||
|
||||
CONSTDATA date::last_spec last{};
|
||||
@ -1487,14 +1480,7 @@ CONSTDATA date::weekday thu{4u};
|
||||
CONSTDATA date::weekday fri{5u};
|
||||
CONSTDATA date::weekday sat{6u};
|
||||
|
||||
} // inline namespace date_literals
|
||||
|
||||
|
||||
|
||||
namespace date
|
||||
{
|
||||
|
||||
using namespace date_literals;
|
||||
} // inline namespace literals
|
||||
|
||||
// weekday_indexed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user