@@ -206,8 +206,10 @@ public:
206
206
207
207
// 27.9.1.4 Members:
208
208
bool is_open () const ;
209
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
209
210
basic_filebuf* open (const char * __s, ios_base::openmode __mode);
210
211
basic_filebuf* open (const string& __s, ios_base::openmode __mode);
212
+ #endif
211
213
basic_filebuf* close ();
212
214
213
215
protected:
@@ -463,6 +465,7 @@ basic_filebuf<_CharT, _Traits>::is_open() const
463
465
return __file_ != 0 ;
464
466
}
465
467
468
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
466
469
template <class _CharT , class _Traits >
467
470
basic_filebuf<_CharT, _Traits>*
468
471
basic_filebuf<_CharT, _Traits>::open (const char * __s, ios_base::openmode __mode)
@@ -550,6 +553,7 @@ basic_filebuf<_CharT, _Traits>::open(const string& __s, ios_base::openmode __mod
550
553
{
551
554
return open (__s.c_str (), __mode);
552
555
}
556
+ #endif
553
557
554
558
template <class _CharT , class _Traits >
555
559
basic_filebuf<_CharT, _Traits>*
@@ -1005,8 +1009,10 @@ public:
1005
1009
typedef typename traits_type::off_type off_type;
1006
1010
1007
1011
basic_ifstream ();
1012
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1008
1013
explicit basic_ifstream (const char * __s, ios_base::openmode __mode = ios_base::in);
1009
1014
explicit basic_ifstream (const string& __s, ios_base::openmode __mode = ios_base::in);
1015
+ #endif
1010
1016
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
1011
1017
basic_ifstream (basic_ifstream&& __rhs);
1012
1018
#endif
@@ -1018,8 +1024,10 @@ public:
1018
1024
1019
1025
basic_filebuf<char_type, traits_type>* rdbuf () const ;
1020
1026
bool is_open () const ;
1027
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1021
1028
void open (const char * __s, ios_base::openmode __mode = ios_base::in);
1022
1029
void open (const string& __s, ios_base::openmode __mode = ios_base::in);
1030
+ #endif
1023
1031
void close ();
1024
1032
1025
1033
private:
@@ -1033,6 +1041,7 @@ basic_ifstream<_CharT, _Traits>::basic_ifstream()
1033
1041
{
1034
1042
}
1035
1043
1044
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1036
1045
template <class _CharT , class _Traits >
1037
1046
inline _LIBCPP_INLINE_VISIBILITY
1038
1047
basic_ifstream<_CharT, _Traits>::basic_ifstream (const char * __s, ios_base::openmode __mode)
@@ -1050,6 +1059,7 @@ basic_ifstream<_CharT, _Traits>::basic_ifstream(const string& __s, ios_base::ope
1050
1059
if (__sb_.open (__s, __mode | ios_base::in) == 0 )
1051
1060
this ->setstate (ios_base::failbit);
1052
1061
}
1062
+ #endif
1053
1063
1054
1064
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
1055
1065
@@ -1107,6 +1117,7 @@ basic_ifstream<_CharT, _Traits>::is_open() const
1107
1117
return __sb_.is_open ();
1108
1118
}
1109
1119
1120
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1110
1121
template <class _CharT , class _Traits >
1111
1122
void
1112
1123
basic_ifstream<_CharT, _Traits>::open (const char * __s, ios_base::openmode __mode)
@@ -1126,6 +1137,7 @@ basic_ifstream<_CharT, _Traits>::open(const string& __s, ios_base::openmode __mo
1126
1137
else
1127
1138
this ->setstate (ios_base::failbit);
1128
1139
}
1140
+ #endif
1129
1141
1130
1142
template <class _CharT , class _Traits >
1131
1143
inline _LIBCPP_INLINE_VISIBILITY
@@ -1163,8 +1175,10 @@ public:
1163
1175
1164
1176
basic_filebuf<char_type, traits_type>* rdbuf () const ;
1165
1177
bool is_open () const ;
1178
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1166
1179
void open (const char * __s, ios_base::openmode __mode = ios_base::out);
1167
1180
void open (const string& __s, ios_base::openmode __mode = ios_base::out);
1181
+ #endif
1168
1182
void close ();
1169
1183
1170
1184
private:
@@ -1178,6 +1192,7 @@ basic_ofstream<_CharT, _Traits>::basic_ofstream()
1178
1192
{
1179
1193
}
1180
1194
1195
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1181
1196
template <class _CharT , class _Traits >
1182
1197
inline _LIBCPP_INLINE_VISIBILITY
1183
1198
basic_ofstream<_CharT, _Traits>::basic_ofstream (const char * __s, ios_base::openmode __mode)
@@ -1195,6 +1210,7 @@ basic_ofstream<_CharT, _Traits>::basic_ofstream(const string& __s, ios_base::ope
1195
1210
if (__sb_.open (__s, __mode | ios_base::out) == 0 )
1196
1211
this ->setstate (ios_base::failbit);
1197
1212
}
1213
+ #endif
1198
1214
1199
1215
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
1200
1216
@@ -1252,6 +1268,7 @@ basic_ofstream<_CharT, _Traits>::is_open() const
1252
1268
return __sb_.is_open ();
1253
1269
}
1254
1270
1271
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1255
1272
template <class _CharT , class _Traits >
1256
1273
void
1257
1274
basic_ofstream<_CharT, _Traits>::open (const char * __s, ios_base::openmode __mode)
@@ -1271,6 +1288,7 @@ basic_ofstream<_CharT, _Traits>::open(const string& __s, ios_base::openmode __mo
1271
1288
else
1272
1289
this ->setstate (ios_base::failbit);
1273
1290
}
1291
+ #endif
1274
1292
1275
1293
template <class _CharT , class _Traits >
1276
1294
inline _LIBCPP_INLINE_VISIBILITY
@@ -1295,8 +1313,10 @@ public:
1295
1313
typedef typename traits_type::off_type off_type;
1296
1314
1297
1315
basic_fstream ();
1316
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1298
1317
explicit basic_fstream (const char * __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
1299
1318
explicit basic_fstream (const string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
1319
+ #endif
1300
1320
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
1301
1321
basic_fstream (basic_fstream&& __rhs);
1302
1322
#endif
@@ -1308,8 +1328,10 @@ public:
1308
1328
1309
1329
basic_filebuf<char_type, traits_type>* rdbuf () const ;
1310
1330
bool is_open () const ;
1331
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1311
1332
void open (const char * __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
1312
1333
void open (const string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
1334
+ #endif
1313
1335
void close ();
1314
1336
1315
1337
private:
@@ -1323,6 +1345,7 @@ basic_fstream<_CharT, _Traits>::basic_fstream()
1323
1345
{
1324
1346
}
1325
1347
1348
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1326
1349
template <class _CharT , class _Traits >
1327
1350
inline _LIBCPP_INLINE_VISIBILITY
1328
1351
basic_fstream<_CharT, _Traits>::basic_fstream (const char * __s, ios_base::openmode __mode)
@@ -1340,6 +1363,7 @@ basic_fstream<_CharT, _Traits>::basic_fstream(const string& __s, ios_base::openm
1340
1363
if (__sb_.open (__s, __mode) == 0 )
1341
1364
this ->setstate (ios_base::failbit);
1342
1365
}
1366
+ #endif
1343
1367
1344
1368
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
1345
1369
@@ -1397,6 +1421,7 @@ basic_fstream<_CharT, _Traits>::is_open() const
1397
1421
return __sb_.is_open ();
1398
1422
}
1399
1423
1424
+ #ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE
1400
1425
template <class _CharT , class _Traits >
1401
1426
void
1402
1427
basic_fstream<_CharT, _Traits>::open (const char * __s, ios_base::openmode __mode)
@@ -1416,6 +1441,7 @@ basic_fstream<_CharT, _Traits>::open(const string& __s, ios_base::openmode __mod
1416
1441
else
1417
1442
this ->setstate (ios_base::failbit);
1418
1443
}
1444
+ #endif
1419
1445
1420
1446
template <class _CharT , class _Traits >
1421
1447
inline _LIBCPP_INLINE_VISIBILITY
0 commit comments