Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# clock (development version)

* Fixed `-Wdeprecated-literal-operator` reported by clang (#386,
@MichaelChirico).

# clock 0.7.2

* Added a `diff()` method for time points and calendars to ensure that durations
Expand Down
8 changes: 4 additions & 4 deletions src/ordinal.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ operator<<(std::basic_ostream<CharT, Traits>& os, const year_yearday_last& yydl)
inline namespace literals
{

CONSTCD11 ordinal::yearday operator "" _yd(unsigned long long yd) NOEXCEPT;
CONSTCD11 ordinal::year operator "" _y(unsigned long long y) NOEXCEPT;
CONSTCD11 ordinal::yearday operator ""_yd(unsigned long long yd) NOEXCEPT;
CONSTCD11 ordinal::year operator ""_y(unsigned long long y) NOEXCEPT;

} // inline namespace literals
#endif // !defined(_MSC_VER) || (_MSC_VER >= 1900)
Expand Down Expand Up @@ -628,15 +628,15 @@ inline namespace literals
CONSTCD11
inline
ordinal::yearday
operator "" _yd(unsigned long long yd) NOEXCEPT
operator ""_yd(unsigned long long yd) NOEXCEPT
{
return ordinal::yearday{static_cast<unsigned>(yd)};
}

CONSTCD11
inline
ordinal::year
operator "" _y(unsigned long long y) NOEXCEPT
operator ""_y(unsigned long long y) NOEXCEPT
{
return ordinal::year(static_cast<int>(y));
}
Expand Down
2 changes: 1 addition & 1 deletion src/week.h
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ inline namespace literals
CONSTCD11
inline
week::weeknum
operator "" _w(unsigned long long wn) NOEXCEPT
operator ""_w(unsigned long long wn) NOEXCEPT
{
return week::weeknum(static_cast<unsigned>(wn));
}
Expand Down
Loading