[libcxx-commits] [libcxx] [libc++] fix `flat_set`'s transparent `insert` (PR #133402)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 29 09:22:44 PDT 2025
huixie90 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?
created LWG issue
https://cplusplus.github.io/LWG/issue4239
https://github.com/llvm/llvm-project/pull/133402
More information about the libcxx-commits
mailing list