summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-12-03 12:27:14 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-12-03 12:27:14 (GMT)
commit2b411792801f981a43701e390f072a37f8a81303 (patch)
tree0e21085ac4576aab6791ec07a2006c574af97b7c /c++
parent5ed48cf279c7cbf46a0107cf9726f8607fc714c4 (diff)
downloadhdf5-2b411792801f981a43701e390f072a37f8a81303.zip
hdf5-2b411792801f981a43701e390f072a37f8a81303.tar.gz
hdf5-2b411792801f981a43701e390f072a37f8a81303.tar.bz2
[svn-r11756] Purpose: Test improvement
Description: Improved the use of std members. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol) Linux 2.4 w/PGI (colonelk)
Diffstat (limited to 'c++')
-rw-r--r--c++/test/dsets.cpp9
-rw-r--r--c++/test/h5cpputil.cpp8
-rw-r--r--c++/test/tattr.cpp9
-rw-r--r--c++/test/tfile.cpp11
-rw-r--r--c++/test/th5s.cpp9
5 files changed, 42 insertions, 4 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp
index a96e95f..0adbfca 100644
--- a/c++/test/dsets.cpp
+++ b/c++/test/dsets.cpp
@@ -29,6 +29,15 @@
#else
#include <iostream>
#endif
+#include <string>
+
+#ifndef H5_NO_NAMESPACE
+#ifndef H5_NO_STD
+ using std::string;
+ using std::cerr;
+ using std::endl;
+#endif // H5_NO_STD
+#endif
#include "testhdf5.h" // C test header file
#include "H5Cpp.h" // C++ API header file
diff --git a/c++/test/h5cpputil.cpp b/c++/test/h5cpputil.cpp
index 44894b2..1d320ca 100644
--- a/c++/test/h5cpputil.cpp
+++ b/c++/test/h5cpputil.cpp
@@ -27,6 +27,14 @@
#endif
#include <string>
+#ifndef H5_NO_NAMESPACE
+#ifndef H5_NO_STD
+ using std::string;
+ using std::cerr;
+ using std::endl;
+#endif // H5_NO_STD
+#endif
+
#include "h5test.h"
#include "H5Exception.h"
#include "h5cpputil.h"
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index 616c73a..34bb6d1 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -19,13 +19,18 @@
***************************************************************************/
-#include <string>
-
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
#else
#include <iostream>
#endif
+#include <string>
+
+#ifndef H5_NO_NAMESPACE
+#ifndef H5_NO_STD
+ using std::string;
+#endif // H5_NO_STD
+#endif
#include "testhdf5.h" // C test header file
#include "H5Cpp.h" // C++ API header file
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 7737a45..8910408 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -22,13 +22,20 @@
***************************************************************************/
-#include <string>
-
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
#else
#include <iostream>
#endif
+#include <string>
+
+#ifndef H5_NO_NAMESPACE
+#ifndef H5_NO_STD
+ using std::string;
+ using std::cerr;
+ using std::endl;
+#endif // H5_NO_STD
+#endif
#include "testhdf5.h" // C test header file
#include "H5Cpp.h" // C++ API header file
diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp
index b5595b5..d8cdb0b 100644
--- a/c++/test/th5s.cpp
+++ b/c++/test/th5s.cpp
@@ -26,6 +26,15 @@
#else
#include <iostream>
#endif
+#include <string>
+
+#ifndef H5_NO_NAMESPACE
+#ifndef H5_NO_STD
+ using std::string;
+ using std::cerr;
+ using std::endl;
+#endif // H5_NO_STD
+#endif
#include "testhdf5.h" // C test header file
#include "H5Cpp.h" // C++ API header file