[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
================
@@ -885,7 +885,7 @@ num_put<_CharT, _OutputIterator>::do_put(iter_type __s, ios_base& __iob, char_ty
const numpunct<char_type>& __np = std::use_facet<numpunct<char_type> >(__iob.getloc());
typedef typename numpunct<char_type>::string_type string_type;
string_type __nm = __v ? __np.truename() : __np.falsename();
- for (typename string_type::iterator __i = __nm.begin(); __i != __nm.end(); ++__i, ++__s)
+ for (typename string_type::iterator __i = __nm.begin(); __i != __nm.end(); ++__i, (void)++__s)
*__s = *__i;
----------------
philnik777 wrote:
This looks to me like a `std::copy` as well.
https://github.com/llvm/llvm-project/pull/161049
More information about the libcxx-commits
mailing list