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