From 96c4d276064bd586f7825784a42de81a1e560614 Mon Sep 17 00:00:00 2001 From: Matt Stephanson Date: Sat, 6 Mar 2021 20:28:09 -0800 Subject: [PATCH] [time.syn] add constexpr to leap_second comparisons --- source/time.tex | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/source/time.tex b/source/time.tex index dfc36ab022..0f6f3d0ac9 100644 --- a/source/time.tex +++ b/source/time.tex @@ -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 - bool operator==(const leap_second& x, const sys_time& y); + constexpr bool operator==(const leap_second& x, const sys_time& y); template - bool operator< (const leap_second& x, const sys_time& y); + constexpr bool operator< (const leap_second& x, const sys_time& y); template - bool operator< (const sys_time& x, const leap_second& y); + constexpr bool operator< (const sys_time& x, const leap_second& y); template - bool operator> (const leap_second& x, const sys_time& y); + constexpr bool operator> (const leap_second& x, const sys_time& y); template - bool operator> (const sys_time& x, const leap_second& y); + constexpr bool operator> (const sys_time& x, const leap_second& y); template - bool operator<=(const leap_second& x, const sys_time& y); + constexpr bool operator<=(const leap_second& x, const sys_time& y); template - bool operator<=(const sys_time& x, const leap_second& y); + constexpr bool operator<=(const sys_time& x, const leap_second& y); template - bool operator>=(const leap_second& x, const sys_time& y); + constexpr bool operator>=(const leap_second& x, const sys_time& y); template - bool operator>=(const sys_time& x, const leap_second& y); + constexpr bool operator>=(const sys_time& x, const leap_second& y); template requires @\libconcept{three_way_comparable_with}@> constexpr auto operator<=>(const leap_second& x, const sys_time& y);