[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
Mon Sep 28 00:35:53 PDT 2026


================

----------------
Nawazz-ish wrote:

Dropping `static` would make it a non-static data member, and those can't be `constexpr` - both Clang and GCC reject it, and `buffer_[Capacity]` needs a constant anyway. I kept `static constexpr`, which is also what `Container` in `container.h` does. Happy to change it if you meant something else, like a namespace-scope constant.


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


More information about the libcxx-commits mailing list