[libcxx-commits] [libcxx] [libc++] fix `flat_set`'s transparent `insert` (PR #133402)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 28 11:12:11 PDT 2025


ldionne wrote:

For the GCC issue, looks like you might want to use `std::lower_bound` instead of `ranges::lower_bound`.

It would be nice to understand why this doesn't happen for `flat_map` on GCC. Maybe we're missing a `flat_map` test that would catch this issue on GCC?

Either way, this looks like a wording problem to me. I think you should file a short LWG issue. I think the resolution would be pretty easy, i.e. just use `std::lower_bound` and `std::upper_bound` instead?

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


More information about the libcxx-commits mailing list