diff options
author | Abseil Team <absl-team@google.com> | 2023-09-06 13:35:11 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-09-06 13:35:57 -0700 |
commit | 7c05348692d70df64110d5d3e10ba90545870aeb (patch) | |
tree | f11862b0af561bf8567efe565b9e1a0c87ef9039 /absl/time | |
parent | b9707b7d7845f9710ae6d5906827b833fdcc2754 (diff) |
Import of CCTZ from GitHub.
PiperOrigin-RevId: 563201556
Change-Id: I2e1abde3944f3f3db532ce15db12adaf89207515
Diffstat (limited to 'absl/time')
-rw-r--r-- | absl/time/internal/cctz/include/cctz/civil_time_detail.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/time/internal/cctz/include/cctz/civil_time_detail.h b/absl/time/internal/cctz/include/cctz/civil_time_detail.h index a5b084e6..2b0aed56 100644 --- a/absl/time/internal/cctz/include/cctz/civil_time_detail.h +++ b/absl/time/internal/cctz/include/cctz/civil_time_detail.h @@ -401,11 +401,11 @@ class civil_time { : civil_time(ct.f_) {} // Factories for the maximum/minimum representable civil_time. - static CONSTEXPR_F civil_time(max)() { + static CONSTEXPR_F auto(max)() -> civil_time { const auto max_year = (std::numeric_limits<std::int_least64_t>::max)(); return civil_time(max_year, 12, 31, 23, 59, 59); } - static CONSTEXPR_F civil_time(min)() { + static CONSTEXPR_F auto(min)() -> civil_time { const auto min_year = (std::numeric_limits<std::int_least64_t>::min)(); return civil_time(min_year, 1, 1, 0, 0, 0); } |