summaryrefslogtreecommitdiffstats
path: root/c++/test/tattr.cpp
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++/test/tattr.cpp
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++/test/tattr.cpp')
-rw-r--r--c++/test/tattr.cpp9
1 files changed, 7 insertions, 2 deletions
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