[libcxx-commits] [libcxx] [libc++][ranges] LWG4121: `ranges::to` constructs associative containers via `c.emplace(c.end(), *it)` (PR #220481)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 10 23:15:03 PDT 2026
Nawazz-ish wrote:
Pushed a follow-up for the GCC 16 failure. `EmplaceOrInsert::size()` returned `int`, and `ranges::equal` compares it against `std::array::size()`, which trips `-Wsign-compare` on the GCC lane. It now returns `std::size_t`, same as the `Container` in `container.h`. Also picked up the naming nit.
https://github.com/llvm/llvm-project/pull/220481
More information about the libcxx-commits
mailing list