summaryrefslogtreecommitdiff
path: root/science/netcdf4/files/patch-ncvalues.h
blob: 1988e2b8746d105b92daa684c902267a9a1bcb7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- cxx/ncvalues.h.orig	Thu Oct 29 02:10:16 1998
+++ cxx/ncvalues.h	Thu Feb  5 20:51:02 2004
@@ -14,7 +14,7 @@
 #ifdef STRSTREAM_H_SPEC
 #   include STRSTREAM_H_SPEC
 #else
-#   include <strstream.h>
+#   include <strstream>
 #endif
 #include <limits.h>
 #include <string.h>
@@ -220,7 +220,7 @@
 char* NcVal(TYPE)::as_string( long n ) const				      \
 {									      \
     char* s = new char[32];						      \
-    ostrstream ostr(s, sizeof(s));                                            \
+    std::ostrstream ostr(s, sizeof(s));                                      \
     ostr << the_values[n] << ends;              			      \
     return s;								      \
 }