[libcxx-commits] [libcxx] [libcxx] applies integer-like changes from [P2393R1] (PR #74161)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 8 18:07:46 PST 2024
================
@@ -87,7 +87,7 @@ class take_view : public view_interface<take_view<_View>> {
return ranges::begin(__base_);
} else {
using _DifferenceT = range_difference_t<_View>;
- auto __size = size();
+ auto __size = range_difference_t<_View>(size());
----------------
timsong-cpp wrote:
This is redundant to the `static_cast` in the next line. Ditto for the next change.
https://github.com/llvm/llvm-project/pull/74161
More information about the libcxx-commits
mailing list