summaryrefslogtreecommitdiffstats
path: root/c++/examples/readdata.cpp
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-03-17 17:20:07 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-03-17 17:20:07 (GMT)
commita6b59791abe6c0dd03ffd70edb8fbe6460ad8971 (patch)
treeb6e2fc0fbccb7926b1bf50d9f86450197f80cead /c++/examples/readdata.cpp
parente12c0353503aa10aac9eb085011339402f30aaeb (diff)
downloadhdf5-a6b59791abe6c0dd03ffd70edb8fbe6460ad8971.zip
hdf5-a6b59791abe6c0dd03ffd70edb8fbe6460ad8971.tar.gz
hdf5-a6b59791abe6c0dd03ffd70edb8fbe6460ad8971.tar.bz2
[svn-r6485] Purpose:
Bug Fix Description: "using namespace std" isn't supported on HP-UX. We ahve the H5_NO_STD flag begin set, but it wasn't being used. Solution: Added the check to the #ifdef line to see if H5_NO_STD is defined before trying to use it in the program. Platforms tested: Kelgia
Diffstat (limited to 'c++/examples/readdata.cpp')
-rw-r--r--c++/examples/readdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/examples/readdata.cpp b/c++/examples/readdata.cpp
index 7facebd..0805fa5 100644
--- a/c++/examples/readdata.cpp
+++ b/c++/examples/readdata.cpp
@@ -19,7 +19,7 @@
//
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif