[all-commits] [llvm/llvm-project] 4b3e0d: [libc++] Fix LWG3533 "Make `base() const&` consist...

Quuxplusone via All-commits all-commits at lists.llvm.org
Wed Jan 26 16:43:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b3e0d2a7eb7cfc9bc6b8ec97fd42acbf6228614
      https://github.com/llvm/llvm-project/commit/4b3e0d2a7eb7cfc9bc6b8ec97fd42acbf6228614
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2022-01-26 (Wed, 26 Jan 2022)

  Changed paths:
    M libcxx/docs/Status/Cxx2bIssues.csv
    M libcxx/include/__iterator/counted_iterator.h
    M libcxx/include/__ranges/transform_view.h
    M libcxx/test/std/iterators/predef.iterators/counted.iterator/base.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.transform/end.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.transform/iterator/base.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.transform/types.h

  Log Message:
  -----------
  [libc++] Fix LWG3533 "Make `base() const&` consistent..."

Fixed in counted_iterator and transform_view::iterator.
The LWG issue also affected elements_view::iterator, but we haven't
implemented that one yet, and whoever does implement it will get
the fix for free if they just follow the working draft's wording.

Drive-by stop calling `.base()` on test iterators in the test,
and improve the transform_view::iterator/sentinel tests.

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




More information about the All-commits mailing list