Skip to content

Commit 622d8b0

Browse files
authored
[libc++] Remove <ostream> include from <chrono> (#96035)
1 parent 7c814c1 commit 622d8b0

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

libcxx/include/__chrono/ostream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <__concepts/same_as.h>
3131
#include <__config>
3232
#include <__format/format_functions.h>
33-
#include <ostream>
33+
#include <__fwd/ostream.h>
3434
#include <ratio>
3535

3636
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

libcxx/include/chrono

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ constexpr chrono::year operator ""y(unsigned lo
997997
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER == 20
998998
# include <charconv>
999999
# include <locale>
1000+
# include <ostream>
10001001
#endif
10011002

10021003
#endif // _LIBCPP_CHRONO

libcxx/test/libcxx/transitive_includes/cxx23.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ chrono ctime
7575
chrono format
7676
chrono forward_list
7777
chrono limits
78-
chrono ostream
7978
chrono ratio
8079
chrono sstream
8180
chrono stdexcept

libcxx/test/libcxx/transitive_includes/cxx26.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ chrono ctime
7575
chrono format
7676
chrono forward_list
7777
chrono limits
78-
chrono ostream
7978
chrono ratio
8079
chrono sstream
8180
chrono stdexcept

0 commit comments

Comments
 (0)