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>
#else
#include <iostream>
using namespace std;
using std::ostream;
#endif
// temporary #define to keep backwards compatibility.

View File

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

View File

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

View File

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

View File

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