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:
parent
be2beec11d
commit
6c38b61185
@ -13,7 +13,7 @@
|
||||
#include <iostream.h>
|
||||
#else
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
using std::ostream;
|
||||
#endif
|
||||
|
||||
// temporary #define to keep backwards compatibility.
|
||||
|
@ -13,7 +13,8 @@
|
||||
#else
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
using namespace std;
|
||||
using std::ostream;
|
||||
using std::ofstream;
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <iostream.h>
|
||||
#else
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
using std::ostream;
|
||||
#endif
|
||||
|
||||
namespace osg {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <iostream.h>
|
||||
#else
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
using std::ostream;
|
||||
#endif
|
||||
|
||||
namespace osg {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <iostream.h>
|
||||
#else
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
using std::ostream;
|
||||
#endif
|
||||
|
||||
namespace osg {
|
||||
|
Loading…
Reference in New Issue
Block a user