diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-02-21 09:54:00 -0500 |
---|---|---|
committer | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-02-22 09:38:16 -0500 |
commit | 6247f0e918bbc0519955d41b135069dcc2bbd453 (patch) | |
tree | 34c1a79c82df589c3206460d86c83c4a2018bee7 /absl/types/internal | |
parent | c3b5022604551a045e383c68071d7be0a807839d (diff) |
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.
Diffstat (limited to 'absl/types/internal')
-rw-r--r-- | absl/types/internal/span.h | 2 | ||||
-rw-r--r-- | absl/types/internal/variant.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/absl/types/internal/span.h b/absl/types/internal/span.h index 344ad4db..a196362a 100644 --- a/absl/types/internal/span.h +++ b/absl/types/internal/span.h @@ -88,7 +88,7 @@ using EnableIfMutable = template <template <typename> class SpanT, typename T> bool EqualImpl(SpanT<T> a, SpanT<T> b) { static_assert(std::is_const<T>::value, ""); - return absl::equal(a.begin(), a.end(), b.begin(), b.end()); + return std::equal(a.begin(), a.end(), b.begin(), b.end()); } template <template <typename> class SpanT, typename T> diff --git a/absl/types/internal/variant.h b/absl/types/internal/variant.h index c82ded44..fc8829e5 100644 --- a/absl/types/internal/variant.h +++ b/absl/types/internal/variant.h @@ -877,8 +877,8 @@ struct IndexOfConstructedType< template <std::size_t... Is> struct ContainsVariantNPos : absl::negation<std::is_same< // NOLINT - absl::integer_sequence<bool, 0 <= Is...>, - absl::integer_sequence<bool, Is != absl::variant_npos...>>> {}; + std::integer_sequence<bool, 0 <= Is...>, + std::integer_sequence<bool, Is != absl::variant_npos...>>> {}; template <class Op, class... QualifiedVariants> using RawVisitResult = |