[all-commits] [llvm/llvm-project] 8615ce: [libc++][test] Adjust move_iterator tests to allow...

Casey Carter via All-commits all-commits at lists.llvm.org
Thu May 7 10:00:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8615ce246d1c3424cd5958592ba2779aa7d37535
      https://github.com/llvm/llvm-project/commit/8615ce246d1c3424cd5958592ba2779aa7d37535
  Author: Casey Carter <Casey at Carter.net>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.incr/post.pass.cpp
    M libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp

  Log Message:
  -----------
  [libc++][test] Adjust move_iterator tests to allow C++20

These tests fail due to a couple of changes to `move_iterator` for C++20:

* `move_iterator<I>::operator++(int)` returns `void` in C++20 if `I` doesn't model `forward_iterator`.

* `move_iterator<I>::reference` is calculated in C++20, so `I` must actually have an `operator*() const`.

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




More information about the All-commits mailing list