mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-11 12:20:52 +00:00
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
Prevents
|
|
error: identifier '_d' preceded by whitespace in a literal operator declaration
|
|
is deprecated [-Werror,-Wdeprecated-literal-operator]
|
|
|
|
--- a/ext/date/date.h
|
|
+++ b/ext/date/date.h
|
|
@@ -963,8 +963,8 @@ operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_weekday_last&
|
|
inline namespace literals
|
|
{
|
|
|
|
-CONSTCD11 date::day operator "" _d(unsigned long long d) NOEXCEPT;
|
|
-CONSTCD11 date::year operator "" _y(unsigned long long y) NOEXCEPT;
|
|
+CONSTCD11 date::day operator ""_d(unsigned long long d) NOEXCEPT;
|
|
+CONSTCD11 date::year operator ""_y(unsigned long long y) NOEXCEPT;
|
|
|
|
} // inline namespace literals
|
|
#endif // !defined(_MSC_VER) || (_MSC_VER >= 1900)
|
|
@@ -1972,7 +1972,7 @@ inline namespace literals
|
|
CONSTCD11
|
|
inline
|
|
date::day
|
|
-operator "" _d(unsigned long long d) NOEXCEPT
|
|
+operator ""_d(unsigned long long d) NOEXCEPT
|
|
{
|
|
return date::day{static_cast<unsigned>(d)};
|
|
}
|
|
@@ -1980,7 +1980,7 @@ operator "" _d(unsigned long long d) NOEXCEPT
|
|
CONSTCD11
|
|
inline
|
|
date::year
|
|
-operator "" _y(unsigned long long y) NOEXCEPT
|
|
+operator ""_y(unsigned long long y) NOEXCEPT
|
|
{
|
|
return date::year(static_cast<int>(y));
|
|
}
|