diff options
Diffstat (limited to 'absl')
-rw-r--r-- | absl/types/span.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/absl/types/span.h b/absl/types/span.h index 7d1d0166..88cd7595 100644 --- a/absl/types/span.h +++ b/absl/types/span.h @@ -173,8 +173,10 @@ class Span { public: using element_type = T; using value_type = absl::remove_cv_t<T>; - using pointer = absl::Nullable<T*>; - using const_pointer = absl::Nullable<const T*>; + // TODO(b/316099902) - pointer should be Nullable<T*>, but this makes it hard + // to recognize foreach loops as safe. + using pointer = T*; + using const_pointer = const T*; using reference = T&; using const_reference = const T&; using iterator = pointer; |