ERR: Need to move forward declarations of non-ansi streams into std namespace when it is available.
This commit is contained in:
parent
b910480e32
commit
249d29030e
|
@ -27,10 +27,6 @@
|
||||||
#if !defined(KWSYS_NO_ANSI_STREAM_HEADERS)
|
#if !defined(KWSYS_NO_ANSI_STREAM_HEADERS)
|
||||||
# include <iosfwd>
|
# include <iosfwd>
|
||||||
#else
|
#else
|
||||||
# if !defined(KWSYS_NO_STD_NAMESPACE)
|
|
||||||
namespace std
|
|
||||||
{
|
|
||||||
# endif
|
|
||||||
class fstream;
|
class fstream;
|
||||||
class ifstream;
|
class ifstream;
|
||||||
class ios;
|
class ios;
|
||||||
|
@ -38,6 +34,14 @@ namespace std
|
||||||
class ofstream;
|
class ofstream;
|
||||||
class ostream;
|
class ostream;
|
||||||
# if !defined(KWSYS_NO_STD_NAMESPACE)
|
# if !defined(KWSYS_NO_STD_NAMESPACE)
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
using ::fstream;
|
||||||
|
using ::ifstream;
|
||||||
|
using ::ios;
|
||||||
|
using ::istream;
|
||||||
|
using ::ofstream;
|
||||||
|
using ::ostream;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue