mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
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:
committed by
Copybara-Service
parent
b03cda5ec9
commit
04d8afe7a3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user