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

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sat Nov 8 04:45: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;
----------------
frederick-vs-ja wrote:

I'm also using `fill_n` now.

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


More information about the libcxx-commits mailing list