Skip to content

Commit 50bdaa9

Browse files
committed
Revert changes
1 parent c81ae25 commit 50bdaa9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

libcxx/include/__ranges/iota_view.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,11 @@ struct __get_wider_signed {
5858
return type_identity<int>{};
5959
else if constexpr (sizeof(_Int) < sizeof(long))
6060
return type_identity<long>{};
61-
else if constexpr (sizeof(_Int) < sizeof(long long))
62-
return type_identity<long long>{};
6361
else
64-
# if _LIBCPP_HAS_INT128
65-
return type_identity<__int128_t>{};
66-
# else
6762
return type_identity<long long>{};
6863

6964
static_assert(
7065
sizeof(_Int) <= sizeof(long long), "Found integer-like type that is bigger than largest integer like type.");
71-
# endif
7266
}
7367

7468
using type = typename decltype(__call())::type;
@@ -355,7 +349,7 @@ class iota_view : public view_interface<iota_view<_Start, _BoundSentinel>> {
355349

356350
_LIBCPP_HIDE_FROM_ABI constexpr auto size() const
357351
requires(same_as<_Start, _BoundSentinel> && __advanceable<_Start>) ||
358-
(__integer_like<_Start> && __integer_like<_BoundSentinel>) || sized_sentinel_for<_BoundSentinel, _Start>
352+
(integral<_Start> && integral<_BoundSentinel>) || sized_sentinel_for<_BoundSentinel, _Start>
359353
{
360354
if constexpr (__integer_like<_Start> && __integer_like<_BoundSentinel>) {
361355
return (__value_ < 0)

0 commit comments

Comments
 (0)