[libcxx-commits] [libcxx] [libc++] Fix ambiguity in ranges::advance and ranges::next affecting flat_set (PR #177773)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 7 00:55:49 PST 2026


================
@@ -0,0 +1,11 @@
+#include <ranges>
+#include <cassert>
+
+int main() {
+  int buffer[10];
+  int* it = buffer;
+
+  std::ranges::advance(it, 3);
----------------
huixie90 wrote:

i think we should have a test point with the same reproducer in the LWG issue

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


More information about the libcxx-commits mailing list