[libcxx-commits] [libcxx] [libc++][test][NFC] Remove unused inclusions of `<iostream>` (PR #134776)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 8 20:05:45 PDT 2025
================
@@ -28,7 +28,6 @@
#include <iterator>
#include "test_macros.h"
-#include <iostream>
----------------
frederick-vs-ja wrote:
Oh, I found that these files use `std::distance`, which is only guaranteed to be available in `<iterator>` and `<ranges>`, although transitively introduced by several headers in libc++.
I think we should either keep includes of `<iterator>` or replace these `std::distance` calls with `operator-`.
https://github.com/llvm/llvm-project/pull/134776
More information about the libcxx-commits
mailing list