Skip to content

Commit ffc7380

Browse files
authored
[libc++] Avoid including shared_ptr.h in basic_ostream.h (#121049)
1 parent 334a576 commit ffc7380

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libcxx/include/__fwd/memory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD
2020
template <class _Tp>
2121
class _LIBCPP_TEMPLATE_VIS allocator;
2222

23+
template <class _Tp>
24+
class _LIBCPP_TEMPLATE_VIS shared_ptr;
25+
2326
_LIBCPP_END_NAMESPACE_STD
2427

2528
#endif // _LIBCPP___FWD_MEMORY_H

libcxx/include/__ostream/basic_ostream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#if _LIBCPP_HAS_LOCALIZATION
1515

1616
# include <__exception/operations.h>
17-
# include <__memory/shared_ptr.h>
17+
# include <__fwd/memory.h>
1818
# include <__memory/unique_ptr.h>
1919
# include <__new/exceptions.h>
2020
# include <__ostream/put_character_sequence.h>

0 commit comments

Comments
 (0)