[all-commits] [llvm/llvm-project] dd4891: [libc++] Fix _CopySegment helper in ranges::copy(j...

Rajveer Singh Bharadwaj via All-commits all-commits at lists.llvm.org
Fri Oct 27 02:07:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd4891318c72d3d0503801a2f78da77fa00c6dcf
      https://github.com/llvm/llvm-project/commit/dd4891318c72d3d0503801a2f78da77fa00c6dcf
  Author: Rajveer Singh Bharadwaj <rajveer.developer at icloud.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M libcxx/include/__algorithm/copy.h
    M libcxx/include/__algorithm/move.h
    M libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy.segmented.pass.cpp
    A libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy_backward.segmented.pass.cpp
    A libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy_n.segmented.pass.cpp
    A libcxx/test/std/algorithms/alg.modifying.operations/alg.move/ranges.move.segmented.pass.cpp
    A libcxx/test/std/algorithms/alg.modifying.operations/alg.move/ranges.move_backward.segmented.pass.cpp

  Log Message:
  -----------
  [libc++] Fix _CopySegment helper in ranges::copy(join_view, out) when called in a static assertion context (#69593)

Resolves Issue #69083

The `_CopySegment` helper for `ranges::copy(join_view, out)` is not
`constexpr` causing rejection in `libc++` in a static assertion context
as in the issue snippet.




More information about the All-commits mailing list