Remove code pieces for no longer supported MSVC versions.

The current support policy is `_MSC_VER >= 1920`.

PiperOrigin-RevId: 599833619
Change-Id: I9cf7393a5b659d1680765e37e0328539ccb870fa
This commit is contained in:
Abseil Team
2024-01-19 07:53:03 -08:00
committed by Copybara-Service
parent b03cda5ec9
commit 04d8afe7a3
5 changed files with 5 additions and 39 deletions

View File

@@ -670,7 +670,7 @@ class string_view {
}
static constexpr size_type StrlenInternal(absl::Nonnull<const char*> str) {
#if defined(_MSC_VER) && _MSC_VER >= 1910 && !defined(__clang__)
#if defined(_MSC_VER) && !defined(__clang__)
// MSVC 2017+ can evaluate this at compile-time.
const char* begin = str;
while (*str != '\0') ++str;