From 67d126083c1584dd7dc584d700f853afaec365ca Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 6 Sep 2024 13:14:21 -0700 Subject: [PATCH] Add `absl::` namespace to c_linear_search implementation in order to avoid ADL PiperOrigin-RevId: 671868434 Change-Id: I3c6a5f545fd7535ea20485547cdc3680a2362824 --- absl/algorithm/container.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/absl/algorithm/container.h b/absl/algorithm/container.h index 2c0426dada2..8f559358be1 100644 --- a/absl/algorithm/container.h +++ b/absl/algorithm/container.h @@ -134,9 +134,9 @@ struct IsUnorderedContainer> template ABSL_INTERNAL_CONSTEXPR_SINCE_CXX20 bool c_linear_search( const C& c, EqualityComparable&& value) { - return linear_search(container_algorithm_internal::c_begin(c), - container_algorithm_internal::c_end(c), - std::forward(value)); + return absl::linear_search(container_algorithm_internal::c_begin(c), + container_algorithm_internal::c_end(c), + std::forward(value)); } //------------------------------------------------------------------------------