[all-commits] [llvm/llvm-project] 80097a: [libc++] Fix input-only range handling for `basic_...

A. Jiang via All-commits all-commits at lists.llvm.org
Tue Jan 21 13:29:54 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80097a1fa5c776790c1f0b313cfac923d86a82f9
      https://github.com/llvm/llvm-project/commit/80097a1fa5c776790c1f0b313cfac923d86a82f9
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-01-21 (Tue, 21 Jan 2025)

  Changed paths:
    M libcxx/include/string
    M libcxx/test/std/strings/basic.string/string.cons/from_range.pass.cpp
    M libcxx/test/std/strings/basic.string/string.modifiers/string_insert/insert_range.pass.cpp

  Log Message:
  -----------
  [libc++] Fix input-only range handling for `basic_string` (#116890)

By calling `std::move` for related functions when the iterator is
possibly input-only. Also slightly changes the conditions of branch for
contiguous iterators to avoid error.

Fixes #116502



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list