Skip to content

Commit e8240fb

Browse files
[time.syn] add constexpr to leap_second comparisons (#4539)
1 parent 066bb6b commit e8240fb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/time.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -772,27 +772,27 @@
772772
// \ref{time.zone.leap}, leap second support
773773
class leap_second;
774774

775-
bool operator==(const leap_second& x, const leap_second& y);
776-
strong_ordering operator<=>(const leap_second& x, const leap_second& y);
775+
constexpr bool operator==(const leap_second& x, const leap_second& y);
776+
constexpr strong_ordering operator<=>(const leap_second& x, const leap_second& y);
777777

778778
template<class Duration>
779-
bool operator==(const leap_second& x, const sys_time<Duration>& y);
779+
constexpr bool operator==(const leap_second& x, const sys_time<Duration>& y);
780780
template<class Duration>
781-
bool operator< (const leap_second& x, const sys_time<Duration>& y);
781+
constexpr bool operator< (const leap_second& x, const sys_time<Duration>& y);
782782
template<class Duration>
783-
bool operator< (const sys_time<Duration>& x, const leap_second& y);
783+
constexpr bool operator< (const sys_time<Duration>& x, const leap_second& y);
784784
template<class Duration>
785-
bool operator> (const leap_second& x, const sys_time<Duration>& y);
785+
constexpr bool operator> (const leap_second& x, const sys_time<Duration>& y);
786786
template<class Duration>
787-
bool operator> (const sys_time<Duration>& x, const leap_second& y);
787+
constexpr bool operator> (const sys_time<Duration>& x, const leap_second& y);
788788
template<class Duration>
789-
bool operator<=(const leap_second& x, const sys_time<Duration>& y);
789+
constexpr bool operator<=(const leap_second& x, const sys_time<Duration>& y);
790790
template<class Duration>
791-
bool operator<=(const sys_time<Duration>& x, const leap_second& y);
791+
constexpr bool operator<=(const sys_time<Duration>& x, const leap_second& y);
792792
template<class Duration>
793-
bool operator>=(const leap_second& x, const sys_time<Duration>& y);
793+
constexpr bool operator>=(const leap_second& x, const sys_time<Duration>& y);
794794
template<class Duration>
795-
bool operator>=(const sys_time<Duration>& x, const leap_second& y);
795+
constexpr bool operator>=(const sys_time<Duration>& x, const leap_second& y);
796796
template<class Duration>
797797
requires @\libconcept{three_way_comparable_with}@<sys_seconds, sys_time<Duration>>
798798
constexpr auto operator<=>(const leap_second& x, const sys_time<Duration>& y);

0 commit comments

Comments
 (0)