[libcxx-commits] [PATCH] D142951: [libc++][ranges] Fix incorrect integer typedef in `elements_view` test.

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 31 15:28:30 PST 2023


var-const updated this revision to Diff 493750.
var-const added a comment.

Feedback


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142951/new/

https://reviews.llvm.org/D142951

Files:
  libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp


Index: libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
===================================================================
--- libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
+++ 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 @@
   std::tuple<int>* it_;
 
   using value_type       = std::tuple<int>;
-  using difference_type  = intptr_t;
+  using difference_type  = std::ptrdiff_t;
   using iterator_concept = std::input_iterator_tag;
 
   constexpr decltype(auto) operator*() const { return *it_; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142951.493750.patch
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230131/0570af2b/attachment.bin>


More information about the libcxx-commits mailing list