From 23bf3a5647f06e5abe573efea1ce567a98a4193b Mon Sep 17 00:00:00 2001 From: Edward Nolan Date: Mon, 21 Sep 2026 23:46:13 -0400 Subject: [PATCH] Set difference_type to range_difference_t, not ptrdiff_t --- include/beman/utf_view/to_utf_view.hpp | 2 +- papers/P2728.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/beman/utf_view/to_utf_view.hpp b/include/beman/utf_view/to_utf_view.hpp index f13aee2..957a02e 100644 --- a/include/beman/utf_view/to_utf_view.hpp +++ b/include/beman/utf_view/to_utf_view.hpp @@ -296,7 +296,7 @@ struct to_utf_view::exposition_only_iterator : detail::iter_catego using value_type = std::conditional_t, ToType>; using reference_type = value_type; - using difference_type = std::ptrdiff_t; + using difference_type = std::ranges::range_difference_t; private: /* !PAPER */ diff --git a/papers/P2728.md b/papers/P2728.md index a7564d5..b4e2dd9 100644 --- a/papers/P2728.md +++ b/papers/P2728.md @@ -785,7 +785,7 @@ public: using iterator_category = @*see below*@; // @*not always present*@ using value_type = conditional_t, ToType>; using reference_type = value_type; - using difference_type = ptrdiff_t; + using difference_type = range_difference_t<@*Base*@>; private: iterator_t<@*Base*@> @*begin_*@{}; // @*exposition only*@, present only if