summaryrefslogtreecommitdiffstats
path: root/c++/examples/extend_ds.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-12-03 12:28:55 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-12-03 12:28:55 (GMT)
commit4620776d72dc398dd134f4b266a38350d6cb7f60 (patch)
tree202d9e4e301c78bd8dd5128c288a31d34adfba92 /c++/examples/extend_ds.cpp
parent2b411792801f981a43701e390f072a37f8a81303 (diff)
downloadhdf5-4620776d72dc398dd134f4b266a38350d6cb7f60.zip
hdf5-4620776d72dc398dd134f4b266a38350d6cb7f60.tar.gz
hdf5-4620776d72dc398dd134f4b266a38350d6cb7f60.tar.bz2
[svn-r11757] Purpose: Example code 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++/examples/extend_ds.cpp')
-rw-r--r--c++/examples/extend_ds.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/c++/examples/extend_ds.cpp b/c++/examples/extend_ds.cpp
index a4cd0e1..5ec6448 100644
--- a/c++/examples/extend_ds.cpp
+++ b/c++/examples/extend_ds.cpp
@@ -19,23 +19,27 @@
*
*/
-#include <string>
-
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
#else
#include <iostream>
#endif
-#include "H5Cpp.h"
+#include <string>
#ifndef H5_NO_NAMESPACE
-using namespace H5;
#ifndef H5_NO_STD
+ using std::string;
using std::cout;
using std::endl;
#endif // H5_NO_STD
#endif
+#include "H5Cpp.h"
+
+#ifndef H5_NO_NAMESPACE
+using namespace H5;
+#endif
+
const string FILE_NAME( "SDSextendible.h5" );
const string DATASET_NAME( "ExtendibleArray" );
const int NX = 10;