@@ -416,9 +416,9 @@ public:
416
416
template <class _Tp >
417
417
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
418
418
_LIBCPP_HIDE_FROM_ABI basic_stringbuf (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
419
- : basic_stringbuf(__which, __a ) {
419
+ : __hm_( nullptr ), __mode_(__which | ios_base::in | ios_base::out ) {
420
420
basic_string_view<_CharT, _Traits> __sv = __t ;
421
- __str_ = __sv;
421
+ __str_ = string_type ( __sv, __a) ;
422
422
__init_buf_ptrs ();
423
423
}
424
424
@@ -898,16 +898,17 @@ public:
898
898
899
899
template <class _Tp >
900
900
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
901
- explicit basic_istringstream (const _Tp& __t , ios_base::openmode __which = ios_base::in)
902
- : basic_istringstream(__t , __which, _Allocator()) {}
901
+ _LIBCPP_HIDE_FROM_ABI explicit basic_istringstream (const _Tp& __t , ios_base::openmode __which = ios_base::in)
902
+ : basic_istringstream(__t , __which | ios_base::in , _Allocator()) {}
903
903
904
904
template <class _Tp >
905
905
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
906
- basic_istringstream (const _Tp& __t , const _Allocator& __a) : basic_istringstream(__t , ios_base::in, __a) {}
906
+ _LIBCPP_HIDE_FROM_ABI basic_istringstream (const _Tp& __t , const _Allocator& __a)
907
+ : basic_istringstream(__t , ios_base::in, __a) {}
907
908
908
909
template <class _Tp >
909
910
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
910
- basic_istringstream (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
911
+ _LIBCPP_HIDE_FROM_ABI basic_istringstream (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
911
912
: basic_istream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__t , __which | ios_base::in, __a) {}
912
913
913
914
#endif // _LIBCPP_STD_VER >= 26
@@ -1031,16 +1032,17 @@ public:
1031
1032
1032
1033
template <class _Tp >
1033
1034
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
1034
- explicit basic_ostringstream (const _Tp& __t , ios_base::openmode __which = ios_base::out)
1035
- : basic_ostringstream(__t , __which, _Allocator()) {}
1035
+ _LIBCPP_HIDE_FROM_ABI explicit basic_ostringstream (const _Tp& __t , ios_base::openmode __which = ios_base::out)
1036
+ : basic_ostringstream(__t , __which | ios_base::out , _Allocator()) {}
1036
1037
1037
1038
template <class _Tp >
1038
1039
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
1039
- basic_ostringstream (const _Tp& __t , const _Allocator& __a) : basic_ostringstream(__t , ios_base::out, __a) {}
1040
+ _LIBCPP_HIDE_FROM_ABI basic_ostringstream (const _Tp& __t , const _Allocator& __a)
1041
+ : basic_ostringstream(__t , ios_base::out, __a) {}
1040
1042
1041
1043
template <class _Tp >
1042
1044
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
1043
- basic_ostringstream (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
1045
+ _LIBCPP_HIDE_FROM_ABI basic_ostringstream (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
1044
1046
: basic_ostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__t , __which | ios_base::out, __a) {}
1045
1047
1046
1048
#endif // _LIBCPP_STD_VER >= 26
@@ -1168,19 +1170,19 @@ public:
1168
1170
1169
1171
template <class _Tp >
1170
1172
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
1171
- explicit basic_stringstream (const _Tp& __t , ios_base::openmode __which = ios_base::out | ios_base::in)
1173
+ _LIBCPP_HIDE_FROM_ABI explicit basic_stringstream (const _Tp& __t ,
1174
+ ios_base::openmode __which = ios_base::out | ios_base::in)
1172
1175
: basic_stringstream(__t , __which, _Allocator()) {}
1173
1176
1174
1177
template <class _Tp >
1175
1178
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
1176
- basic_stringstream (const _Tp& __t , const _Allocator& __a)
1179
+ _LIBCPP_HIDE_FROM_ABI basic_stringstream (const _Tp& __t , const _Allocator& __a)
1177
1180
: basic_stringstream(__t , ios_base::out | ios_base::in, __a) {}
1178
1181
1179
1182
template <class _Tp >
1180
1183
requires is_convertible_v<const _Tp&, basic_string_view<_CharT, _Traits>>
1181
- basic_stringstream (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
1182
- : basic_iostream<_CharT, _Traits>(std::addressof(__sb_)),
1183
- __sb_(__t , __which | ios_base::out | ios_base::in, __a) {}
1184
+ _LIBCPP_HIDE_FROM_ABI basic_stringstream (const _Tp& __t , ios_base::openmode __which, const _Allocator& __a)
1185
+ : basic_iostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__t , __which, __a) {}
1184
1186
1185
1187
#endif // _LIBCPP_STD_VER >= 26
1186
1188
0 commit comments