Skip to content

Commit db2e8d7

Browse files
committed
[LIBCXX] std::ostream::sentry should be exported on MinGW
for testing by CI. std::istream::sentry is left original to ensure test detects this defect.
1 parent 47f81a8 commit db2e8d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libcxx/include/__ostream/basic_ostream.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,16 @@ basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, const ch
665665

666666
# endif // _LIBCPP_STD_VER >= 20
667667

668+
# if defined(__MINGW32__) || defined(__CYGWIN__)
669+
extern template _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ostream<char>::sentry::sentry(basic_ostream<char>& __os);
670+
extern template _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ostream<char>::sentry::~sentry();
671+
# endif
668672
extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ostream<char>;
669673
# if _LIBCPP_HAS_WIDE_CHARACTERS
674+
# if defined(__MINGW32__) || defined(__CYGWIN__)
675+
extern template _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ostream<wchar_t>::sentry::sentry(basic_ostream<wchar_t>& __os);
676+
extern template _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ostream<wchar_t>::sentry::~sentry();
677+
# endif
670678
extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ostream<wchar_t>;
671679
# endif
672680

0 commit comments

Comments
 (0)