A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cplusplus/draft/issues/3997 below:

Why do deduction guides for take_view and drop_view have different constraints? LWG 3447 · Issue #3997 · cplusplus/draft · GitHub

In [range.take.view], the deduction guide for take_view is declared as:

  template<range R>
    take_view(R&&, range_difference_t<R>)
      -> take_view<views::all_t<R>>;

In [range.drop.view], the deduction guide for drop_view is declared as:

  template<class R>
    drop_view(R&&, range_difference_t<R>) -> drop_view<views::all_t<R>>;

Note the difference between their template parameter lists.

AFAIK there's no difference in effect, because views::all_t only accepts a viewable_range.

Can they be declared in a more similar way?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4