From 6247f0e918bbc0519955d41b135069dcc2bbd453 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Tue, 21 Feb 2023 09:54:00 -0500 Subject: Resolve TODO: remove C++11 workarounds We no longer support C++11 as per the Google C++ support documentation: we support C++14 and up, so we can remove these workarounds. --- absl/container/fixed_array.h | 2 +- absl/container/inlined_vector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'absl/container') diff --git a/absl/container/fixed_array.h b/absl/container/fixed_array.h index b67379cf..efc40a5f 100644 --- a/absl/container/fixed_array.h +++ b/absl/container/fixed_array.h @@ -342,7 +342,7 @@ class FixedArray { // Relational operators. Equality operators are elementwise using // `operator==`, while order operators order FixedArrays lexicographically. friend bool operator==(const FixedArray& lhs, const FixedArray& rhs) { - return absl::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); + return std::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); } friend bool operator!=(const FixedArray& lhs, const FixedArray& rhs) { diff --git a/absl/container/inlined_vector.h b/absl/container/inlined_vector.h index 7058f375..42a4f946 100644 --- a/absl/container/inlined_vector.h +++ b/absl/container/inlined_vector.h @@ -843,7 +843,7 @@ bool operator==(const absl::InlinedVector& a, const absl::InlinedVector& b) { auto a_data = a.data(); auto b_data = b.data(); - return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); + return std::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); } // `operator!=(...)` -- cgit v1.2.3