From 6c38b611852478c0955135690d99b75e4eee7508 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Dec 2001 11:22:44 +0000 Subject: [PATCH] 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. --- include/osg/Matrix | 2 +- include/osg/Notify | 3 ++- include/osg/Vec2 | 2 +- include/osg/Vec3 | 2 +- include/osg/Vec4 | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/osg/Matrix b/include/osg/Matrix index facd122da..6df3bd94e 100644 --- a/include/osg/Matrix +++ b/include/osg/Matrix @@ -13,7 +13,7 @@ #include #else #include -using namespace std; +using std::ostream; #endif // temporary #define to keep backwards compatibility. diff --git a/include/osg/Notify b/include/osg/Notify index 62c71c97a..953873d73 100644 --- a/include/osg/Notify +++ b/include/osg/Notify @@ -13,7 +13,8 @@ #else #include #include -using namespace std; +using std::ostream; +using std::ofstream; #endif diff --git a/include/osg/Vec2 b/include/osg/Vec2 index ed1b3d2d0..ea6a41b44 100644 --- a/include/osg/Vec2 +++ b/include/osg/Vec2 @@ -11,7 +11,7 @@ #include #else #include -using namespace std; +using std::ostream; #endif namespace osg { diff --git a/include/osg/Vec3 b/include/osg/Vec3 index 25ed53da4..6758b26a7 100644 --- a/include/osg/Vec3 +++ b/include/osg/Vec3 @@ -11,7 +11,7 @@ #include #else #include -using namespace std; +using std::ostream; #endif namespace osg { diff --git a/include/osg/Vec4 b/include/osg/Vec4 index f609a87d0..740b9a43a 100644 --- a/include/osg/Vec4 +++ b/include/osg/Vec4 @@ -11,7 +11,7 @@ #include #else #include -using namespace std; +using std::ostream; #endif namespace osg {