Skip to content

[time.syn] add constexpr to leap_second comparisons #4539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2021
Merged
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
22 changes: 11 additions & 11 deletions source/time.tex
Original file line number Diff line number Diff line change
Expand Up @@ -772,27 +772,27 @@
// \ref{time.zone.leap}, leap second support
class leap_second;

bool operator==(const leap_second& x, const leap_second& y);
strong_ordering operator<=>(const leap_second& x, const leap_second& y);
constexpr bool operator==(const leap_second& x, const leap_second& y);
constexpr strong_ordering operator<=>(const leap_second& x, const leap_second& y);

template<class Duration>
bool operator==(const leap_second& x, const sys_time<Duration>& y);
constexpr bool operator==(const leap_second& x, const sys_time<Duration>& y);
template<class Duration>
bool operator< (const leap_second& x, const sys_time<Duration>& y);
constexpr bool operator< (const leap_second& x, const sys_time<Duration>& y);
template<class Duration>
bool operator< (const sys_time<Duration>& x, const leap_second& y);
constexpr bool operator< (const sys_time<Duration>& x, const leap_second& y);
template<class Duration>
bool operator> (const leap_second& x, const sys_time<Duration>& y);
constexpr bool operator> (const leap_second& x, const sys_time<Duration>& y);
template<class Duration>
bool operator> (const sys_time<Duration>& x, const leap_second& y);
constexpr bool operator> (const sys_time<Duration>& x, const leap_second& y);
template<class Duration>
bool operator<=(const leap_second& x, const sys_time<Duration>& y);
constexpr bool operator<=(const leap_second& x, const sys_time<Duration>& y);
template<class Duration>
bool operator<=(const sys_time<Duration>& x, const leap_second& y);
constexpr bool operator<=(const sys_time<Duration>& x, const leap_second& y);
template<class Duration>
bool operator>=(const leap_second& x, const sys_time<Duration>& y);
constexpr bool operator>=(const leap_second& x, const sys_time<Duration>& y);
template<class Duration>
bool operator>=(const sys_time<Duration>& x, const leap_second& y);
constexpr bool operator>=(const sys_time<Duration>& x, const leap_second& y);
template<class Duration>
requires @\libconcept{three_way_comparable_with}@<sys_seconds, sys_time<Duration>>
constexpr auto operator<=>(const leap_second& x, const sys_time<Duration>& y);
Expand Down