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>
|
#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.
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user