[all-commits] [llvm/llvm-project] 4851fb: fix errors on passing input iterator to `std::view...

Hui via All-commits all-commits at lists.llvm.org
Sun Sep 25 07:43:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4851fbc3cf2387fd5f3f09a935fab9397282215b
      https://github.com/llvm/llvm-project/commit/4851fbc3cf2387fd5f3f09a935fab9397282215b
  Author: Hui Xie <hui.xie1990 at gmail.com>
  Date:   2022-09-25 (Sun, 25 Sep 2022)

  Changed paths:
    M libcxx/include/__ranges/take_view.h
    M libcxx/test/std/ranges/range.adaptors/range.take/adaptor.pass.cpp

  Log Message:
  -----------
  fix errors on passing input iterator to `std::views::take`

In the implementation of `std::views::take`, it uses `subrange<Iter>` as part of the return type. But in case of input iterator, `subrange<Iter>` can be ill-formed

Differential Revision: https://reviews.llvm.org/D133220




More information about the All-commits mailing list