[libcxx-commits] [PATCH] D103101: [libc++] Add _LIBCPP_ABI_NO_ITERATOR_BASES. Fix input/output iterators' difference_type for C++20.

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 25 10:36:38 PDT 2021


Quuxplusone created this revision.
Quuxplusone added reviewers: Mordante, cjdb, ldionne, zoecarver, libc++.
Quuxplusone added a project: libc++.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.

This makes `ostream_iterator` and `ostreambuf_iterator` conforming to C++20, I think. (They needed to be default-constructible. But p2325 <https://wg21.link/p2325> will remove the default constructor again, as a DR against C++20, when it lands.)

Supersedes D101729 <https://reviews.llvm.org/D101729>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103101

Files:
  libcxx/include/__config
  libcxx/include/__memory/raw_storage_iterator.h
  libcxx/include/iterator
  libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp
  libcxx/test/std/iterators/predef.iterators/insert.iterators/back.insert.iterator/types.pass.cpp
  libcxx/test/std/iterators/predef.iterators/insert.iterators/front.insert.iterator/types.pass.cpp
  libcxx/test/std/iterators/predef.iterators/insert.iterators/insert.iterator/types.pass.cpp
  libcxx/test/std/iterators/stream.iterators/ostream.iterator/iterator_concept_conformance.compile.pass.cpp
  libcxx/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/default.pass.cpp
  libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/iterator_concept_conformance.compile.pass.cpp
  libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.cons/default.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103101.347721.patch
Type: text/x-patch
Size: 22353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210525/7c4bdf08/attachment-0001.bin>


More information about the libcxx-commits mailing list