Skip to content

Commit

Permalink
Remove spurious exclamation mark
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani-Hub committed Jan 28, 2024
1 parent d5d6bfd commit 132ce2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/issue4050.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ auto take_and_drop = std::views::drop(5)

// The type of iota is drop_view<take_view<drop_view<take_view<drop_view<iota_view<int, unreachable_sentinel_t>>>>>>, which is indeed a template bloat.
auto iota = std::views::iota(0) | take_and_drop;
static_assert(!std::ranges::sized_range&lt;decltype(iota)&gt;); // <span style="color:red;font-weight:bolder">failed</span>
static_assert(std::ranges::sized_range&lt;decltype(iota)&gt;); // <span style="color:red;font-weight:bolder">failed</span>

// The type of repeat is simply std::ranges::repeat_view&lt;int, long&gt;
std::ranges::sized_range auto repeat = std::views::repeat(0) | take_and_drop; // ok
Expand Down

0 comments on commit 132ce2b

Please sign in to comment.