Removed the 'using namespace std' and replaced with more specific 'using std::ostream'

this should help prevent polution of the global namespace with std when including
these osg include files.
This commit is contained in:
Robert Osfield 2001-12-11 11:22:44 +00:00
parent be2beec11d
commit 6c38b61185
5 changed files with 6 additions and 5 deletions

View File

@ -13,7 +13,7 @@
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
using namespace std; using std::ostream;
#endif #endif
// temporary #define to keep backwards compatibility. // temporary #define to keep backwards compatibility.

View File

@ -13,7 +13,8 @@
#else #else
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
using namespace std; using std::ostream;
using std::ofstream;
#endif #endif

View File

@ -11,7 +11,7 @@
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
using namespace std; using std::ostream;
#endif #endif
namespace osg { namespace osg {

View File

@ -11,7 +11,7 @@
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
using namespace std; using std::ostream;
#endif #endif
namespace osg { namespace osg {

View File

@ -11,7 +11,7 @@
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
using namespace std; using std::ostream;
#endif #endif
namespace osg { namespace osg {