diff options
Diffstat (limited to 'c++/examples/h5group.cpp')
-rw-r--r-- | c++/examples/h5group.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp index bb798b2..437ba17 100644 --- a/c++/examples/h5group.cpp +++ b/c++/examples/h5group.cpp @@ -20,23 +20,28 @@ * Note that the C++ API iterator function is not completed yet, thus * the C version is used in this example. */ -#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( "Group.h5" ); const int RANK = 2; |