[libcxx-commits] [libcxx] [libc++] Fix -Wsign-compare warning in `ranges::search` (PR #100983)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 29 04:41:52 PDT 2024
philnik777 wrote:
> > What exactly is the problem here you're trying to solve? AFAICT `ranges::size` is guaranteed to be correct here.
>
> As the title describes: "Fix -Wsign-compare warning in ranges::search": https://godbolt.org/z/de8Gv9dWx
But why is that a problem? You can fix your container if you care about `-Wsign-compare`, or don't compile with warnings enabled in system headers.
https://github.com/llvm/llvm-project/pull/100983
More information about the libcxx-commits
mailing list