File 0004-Do-not-enforce-namespace-std-in-all-headers.patch of Package libSNL

From ed8b157459cd6f91c82f638a9165e67255188008 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 28 Jul 2019 04:32:09 +0200
Subject: [PATCH 4/5] Do not enforce namespace std in all headers

---
 trunk/src/snlCtrlPointNet.h          | 2 --
 trunk/src/snlCtrlPointNetSurface.cpp | 2 ++
 trunk/src/snlCurveBase.h             | 2 --
 trunk/src/snlKnotVector.cpp          | 2 ++
 trunk/src/snlKnotVector.h            | 2 --
 trunk/src/snlMatrix_4x4.cpp          | 2 ++
 trunk/src/snlMatrix_4x4.h            | 2 --
 trunk/src/snlMeshable.h              | 2 --
 trunk/src/snlNurbsCommon.cpp         | 2 ++
 trunk/src/snlNurbsCommon.h           | 2 --
 trunk/src/snlPoint.cpp               | 2 ++
 trunk/src/snlSquareLinear.cpp        | 2 ++
 trunk/src/snlSquareLinear.h          | 2 --
 trunk/src/snlSurface.cpp             | 2 ++
 trunk/src/snlSurfaceBase.h           | 2 --
 trunk/src/snlSurface_projection.cpp  | 2 ++
 trunk/src/snlTriangleMesh.h          | 2 --
 trunk/src/snlUtil.h                  | 2 --
 trunk/src/snlVector.cpp              | 2 ++
 trunk/src/snlVector.h                | 2 --
 trunk/src/snlVertexNet.h             | 2 --
 21 files changed, 18 insertions(+), 24 deletions(-)

diff --git a/trunk/src/snlCtrlPointNet.h b/trunk/src/snlCtrlPointNet.h
index 8927d0d..bd34d84 100644
--- a/trunk/src/snlCtrlPointNet.h
+++ b/trunk/src/snlCtrlPointNet.h
@@ -33,8 +33,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 class snlCtrlPointNet
diff --git a/trunk/src/snlCtrlPointNetSurface.cpp b/trunk/src/snlCtrlPointNetSurface.cpp
index 01ab588..0f610bd 100644
--- a/trunk/src/snlCtrlPointNetSurface.cpp
+++ b/trunk/src/snlCtrlPointNetSurface.cpp
@@ -18,6 +18,8 @@
 #include "snlCtrlPointNetSurface.h"
 #include "snlUtil.h"
 
+using std::cout;
+
 snlCtrlPointNetSurface::snlCtrlPointNetSurface ( snlCtrlPoint* cPtArray, unsigned size_u, unsigned size_v, bool copy )
 {
     // Control Points for a surface - Constructor
diff --git a/trunk/src/snlCurveBase.h b/trunk/src/snlCurveBase.h
index 2a61596..7787553 100644
--- a/trunk/src/snlCurveBase.h
+++ b/trunk/src/snlCurveBase.h
@@ -36,8 +36,6 @@
     #include <cmath>
     #include <cfloat>
     
-    using namespace std;
-    
 #endif
 
 class snlCurveBase
diff --git a/trunk/src/snlKnotVector.cpp b/trunk/src/snlKnotVector.cpp
index d155a1b..f78149e 100644
--- a/trunk/src/snlKnotVector.cpp
+++ b/trunk/src/snlKnotVector.cpp
@@ -17,6 +17,8 @@
 
 #include "snlKnotVector.h"
 
+using std::cout;
+
 snlKnotVector::~snlKnotVector ()
 {
     if ( knots ) delete [ ] knots;
diff --git a/trunk/src/snlKnotVector.h b/trunk/src/snlKnotVector.h
index 20b7a8d..1556363 100644
--- a/trunk/src/snlKnotVector.h
+++ b/trunk/src/snlKnotVector.h
@@ -30,8 +30,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 typedef double knot;
diff --git a/trunk/src/snlMatrix_4x4.cpp b/trunk/src/snlMatrix_4x4.cpp
index 7c3c34a..6ba6998 100644
--- a/trunk/src/snlMatrix_4x4.cpp
+++ b/trunk/src/snlMatrix_4x4.cpp
@@ -19,6 +19,8 @@
 
 #include "snlMatrix_4x4.h"
 
+using std::cout;
+
 snlMatrix_4X4::snlMatrix_4X4()
 {
     element = new double [ 16 ];
diff --git a/trunk/src/snlMatrix_4x4.h b/trunk/src/snlMatrix_4x4.h
index 578155e..330c709 100644
--- a/trunk/src/snlMatrix_4x4.h
+++ b/trunk/src/snlMatrix_4x4.h
@@ -32,8 +32,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 class snlMatrix_4X4
diff --git a/trunk/src/snlMeshable.h b/trunk/src/snlMeshable.h
index 36c749f..d03c6f8 100644
--- a/trunk/src/snlMeshable.h
+++ b/trunk/src/snlMeshable.h
@@ -34,8 +34,6 @@
     #include <cmath>
     #include <cfloat>
     
-    using namespace std;
-    
 #endif
 
 // Notes:   A curve is not strictly meshable but is included anyway.
diff --git a/trunk/src/snlNurbsCommon.cpp b/trunk/src/snlNurbsCommon.cpp
index b12cc61..43d2608 100644
--- a/trunk/src/snlNurbsCommon.cpp
+++ b/trunk/src/snlNurbsCommon.cpp
@@ -24,6 +24,8 @@
 #include "snlNurbsCommon.h"
 #include "snlVector.h"
 
+using std::cout;
+
 //#define PROJ_COMMENT
 
 static int maxIterations = 0;
diff --git a/trunk/src/snlNurbsCommon.h b/trunk/src/snlNurbsCommon.h
index 9302f14..d357676 100644
--- a/trunk/src/snlNurbsCommon.h
+++ b/trunk/src/snlNurbsCommon.h
@@ -35,8 +35,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 const int MAX_PROJ_ITER = 64;  // Maximum number of newton iterations for projection functions.
diff --git a/trunk/src/snlPoint.cpp b/trunk/src/snlPoint.cpp
index be0ecfd..0dfe390 100644
--- a/trunk/src/snlPoint.cpp
+++ b/trunk/src/snlPoint.cpp
@@ -17,6 +17,8 @@
 
 #include "snlPoint.h"
 
+using std::cout;
+
 snlPoint::snlPoint()
 {
     elements [ 0 ] = 0;
diff --git a/trunk/src/snlSquareLinear.cpp b/trunk/src/snlSquareLinear.cpp
index b7c8aa5..a163085 100644
--- a/trunk/src/snlSquareLinear.cpp
+++ b/trunk/src/snlSquareLinear.cpp
@@ -19,6 +19,8 @@
 
 #include "snlSquareLinear.h"
 
+using std::cout;
+
 snlSquareLinear::snlSquareLinear()
 {
     num_unknowns = 0;
diff --git a/trunk/src/snlSquareLinear.h b/trunk/src/snlSquareLinear.h
index 191e8fc..6a657ba 100644
--- a/trunk/src/snlSquareLinear.h
+++ b/trunk/src/snlSquareLinear.h
@@ -32,8 +32,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 class snlSquareLinear
diff --git a/trunk/src/snlSurface.cpp b/trunk/src/snlSurface.cpp
index dc2fd4c..d3f95db 100644
--- a/trunk/src/snlSurface.cpp
+++ b/trunk/src/snlSurface.cpp
@@ -18,6 +18,8 @@
 
 #include "snlNurbsCommon.h"
 
+using std::cout;
+
 snlSurface::~snlSurface()
 {
     if ( ctrlPtNet ) delete ctrlPtNet;
diff --git a/trunk/src/snlSurfaceBase.h b/trunk/src/snlSurfaceBase.h
index 7479d60..9548b55 100644
--- a/trunk/src/snlSurfaceBase.h
+++ b/trunk/src/snlSurfaceBase.h
@@ -33,8 +33,6 @@
     #include <cmath>
     #include <cfloat>
 
-    using namespace std;
-
 #endif
 
 class snlSurfaceBase
diff --git a/trunk/src/snlSurface_projection.cpp b/trunk/src/snlSurface_projection.cpp
index 3ea4829..45011d9 100644
--- a/trunk/src/snlSurface_projection.cpp
+++ b/trunk/src/snlSurface_projection.cpp
@@ -15,6 +15,8 @@
 
 #include "snlSurface_projection.h"
 
+using std::cout;
+
 snlVertex* snlSurface::project_depr ( snlPoint* toProject, int numPoints, double convergTol,
                                       double normTol, int maxPass )
 {
diff --git a/trunk/src/snlTriangleMesh.h b/trunk/src/snlTriangleMesh.h
index ee5de58..772fd98 100644
--- a/trunk/src/snlTriangleMesh.h
+++ b/trunk/src/snlTriangleMesh.h
@@ -30,8 +30,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 typedef struct
diff --git a/trunk/src/snlUtil.h b/trunk/src/snlUtil.h
index 06cb85b..6d7f4db 100644
--- a/trunk/src/snlUtil.h
+++ b/trunk/src/snlUtil.h
@@ -30,8 +30,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 #ifndef M_PI
diff --git a/trunk/src/snlVector.cpp b/trunk/src/snlVector.cpp
index 36e2005..e735723 100644
--- a/trunk/src/snlVector.cpp
+++ b/trunk/src/snlVector.cpp
@@ -17,6 +17,8 @@
 
 #include "snlVector.h"
 
+using std::cout;
+
 snlVector::snlVector()
 {
     homogeneous = false;
diff --git a/trunk/src/snlVector.h b/trunk/src/snlVector.h
index 4101335..0e90997 100644
--- a/trunk/src/snlVector.h
+++ b/trunk/src/snlVector.h
@@ -32,8 +32,6 @@ class snlPoint;
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 class snlVector
diff --git a/trunk/src/snlVertexNet.h b/trunk/src/snlVertexNet.h
index dd4a932..3f64a05 100644
--- a/trunk/src/snlVertexNet.h
+++ b/trunk/src/snlVertexNet.h
@@ -33,8 +33,6 @@
     #include <iostream>
     #include <cmath>
     
-    using namespace std;
-    
 #endif
 
 class snlVertexNet
-- 
2.47.0

openSUSE Build Service is sponsored by