[libcxx-commits] [libcxx] [libc++] Avoid overloaded `operator, ` for (`T`, `Iter`) cases (PR #161049)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 7 04:34:04 PST 2025


================
@@ -30,11 +30,11 @@ _LIBCPP_HIDE_FROM_ABI _OutputIterator __pad_and_output(
     __ns -= __sz;
   else
     __ns = 0;
-  for (; __ob < __op; ++__ob, ++__s)
+  for (; __ob < __op; ++__ob, (void)++__s)
     *__s = *__ob;
----------------
philnik777 wrote:

Isn't this just a `std::copy`? Same below.

https://github.com/llvm/llvm-project/pull/161049


More information about the libcxx-commits mailing list