summary refs log tree commit diff
path: root/pkgs/development/libraries/physics/applgrid/bad_code.patch
blob: c1c8f618fbb3a493e6e7dd2ee286f6ea797310d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff --git a/appl_grid/appl_grid.h b/appl_grid/appl_grid.h
index 5059622..a0651c9 100644
--- a/appl_grid/appl_grid.h
+++ b/appl_grid/appl_grid.h
@@ -56,7 +56,7 @@ public:
   class exception : public std::exception { 
   public:
     exception(const std::string& s) { std::cerr << what() << " " << s << std::endl; }; 
-    exception(std::ostream& s)      { std::cerr << what() << " " << s << std::endl; }; 
+    exception(std::ostream& s)      { s << what() << " " << std::endl; }; 
     virtual const char* what() const throw() { return "appl::grid::exception"; }
   };
 
diff --git a/appl_grid/appl_pdf.h b/appl_grid/appl_pdf.h
index c71fd84..2525527 100644
--- a/appl_grid/appl_pdf.h
+++ b/appl_grid/appl_pdf.h
@@ -51,7 +51,7 @@ public:
   class exception : public std::exception { 
   public: 
     exception(const std::string& s="") { std::cerr << what() << " " << s << std::endl; }; 
-    exception(std::ostream& s)         { std::cerr << what() << " " << s << std::endl; }; 
+    exception(std::ostream& s)         { s << " " << std::endl; }; 
     const char* what() const throw() { return "appl::appl_pdf::exception "; }
   };
   
diff --git a/src/appl_igrid.h b/src/appl_igrid.h
index d25288e..be354df 100644
--- a/src/appl_igrid.h
+++ b/src/appl_igrid.h
@@ -52,7 +52,7 @@ private:
   class exception { 
   public:
     exception(const std::string& s) { std::cerr << s << std::endl; }; 
-    exception(std::ostream& s)      { std::cerr << s << std::endl; }; 
+    exception(std::ostream& s)      { s << std::endl; }; 
   };
 
   typedef double (igrid::*transform_t)(double) const;