Commit 2ed3e75e by Derek Mauro Committed by Copybara-Service

Span: Remove MSVC 2015 workaround

PiperOrigin-RevId: 524347923
Change-Id: I4538eb8d5d6e8befbeb8ab992b0ad44dd8f4f00c
parent bce5bec5
......@@ -296,8 +296,7 @@ class Span {
//
// Returns a reference to the i'th element of this span.
constexpr reference operator[](size_type i) const noexcept {
// MSVC 2015 accepts this as constexpr, but not ptr_[i]
return ABSL_HARDENING_ASSERT(i < size()), *(data() + i);
return ABSL_HARDENING_ASSERT(i < size()), ptr_[i];
}
// Span::at()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment