[libcxx-commits] [libcxx] 3fe3f9c - [libc++][ranges] Fix incorrect integer typedef in `elements_view` test.
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 31 15:29:08 PST 2023
Author: Konstantin Varlamov
Date: 2023-01-31T15:29:00-08:00
New Revision: 3fe3f9c51cbac91af741e53e96c89f633bd2a6ad
URL: https://github.com/llvm/llvm-project/commit/3fe3f9c51cbac91af741e53e96c89f633bd2a6ad
DIFF: https://github.com/llvm/llvm-project/commit/3fe3f9c51cbac91af741e53e96c89f633bd2a6ad.diff
LOG: [libc++][ranges] Fix incorrect integer typedef in `elements_view` test.
Differential Revision: https://reviews.llvm.org/D142951
Added:
Modified:
libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
index 9af7b097aa4f2..343bf80346302 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
@@ -20,6 +20,7 @@
#include <cassert>
#include <concepts>
+#include <cstddef>
#include <functional>
#include <ranges>
#include <tuple>
@@ -31,7 +32,7 @@ struct Iter {
std::tuple<int>* it_;
using value_type = std::tuple<int>;
- using
diff erence_type = intptr_t;
+ using
diff erence_type = std::ptr
diff _t;
using iterator_concept = std::input_iterator_tag;
constexpr decltype(auto) operator*() const { return *it_; }
More information about the libcxx-commits
mailing list