From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Wed, 30 Oct 2019 16:26:29 -0700 Subject: fix ambiguous reference to 'data' Upstreamed: https://chromium-review.googlesource.com/c/chromium/src/+/1891762 diff --git a/base/containers/span.h b/base/containers/span.h index 2c402495a960f348275b7f925ca5dcdbf691ff7a..0faa4ad502d3982293f4faa50525a2340dbf2abd 100644 --- a/base/containers/span.h +++ b/base/containers/span.h @@ -498,7 +498,7 @@ template ()))>, typename = internal::EnableIfSpanCompatibleContainer> constexpr span make_span(Container& container) noexcept { - return span(data(container), size(container)); + return span(base::data(container), base::size(container)); } template < @@ -509,7 +509,7 @@ template < decltype(base::data(std::declval()))>, typename = internal::EnableIfSpanCompatibleContainer> constexpr span make_span(const Container& container) noexcept { - return span(data(container), size(container)); + return span(base::data(container), base::size(container)); } template