diff options
author | Abseil Team <absl-team@google.com> | 2022-05-19 22:53:29 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-19 22:54:08 -0700 |
commit | b8bbe92f84ffe1e249016cfe8b79efdffb7a35c1 (patch) | |
tree | c1702f9dcf409089108c39d650d097d3fe41abd4 /absl/time/time.h | |
parent | b39a7000a007e66f63c65b2490628ea34026e5e6 (diff) |
Change workaround for MSVC bug regarding compile-time initialization to trigger from MSC_VER 1910 to 1930.
1929 is the last _MSC_VER for Visual Studio 2019.
PiperOrigin-RevId: 449909831
Change-Id: Ibca931cc31131235eba55d2a1b97c7a062f059db
Diffstat (limited to 'absl/time/time.h')
-rw-r--r-- | absl/time/time.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/time/time.h b/absl/time/time.h index 69d72208..f284aa37 100644 --- a/absl/time/time.h +++ b/absl/time/time.h @@ -162,7 +162,7 @@ class Duration { constexpr Duration() : rep_hi_(0), rep_lo_(0) {} // zero-length duration // Copyable. -#if !defined(__clang__) && defined(_MSC_VER) && _MSC_VER < 1910 +#if !defined(__clang__) && defined(_MSC_VER) && _MSC_VER < 1930 // Explicitly defining the constexpr copy constructor avoids an MSVC bug. constexpr Duration(const Duration& d) : rep_hi_(d.rep_hi_), rep_lo_(d.rep_lo_) {} |