diff options
Diffstat (limited to 'c++/examples/create.cpp')
-rw-r--r-- | c++/examples/create.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/c++/examples/create.cpp b/c++/examples/create.cpp index de7dcc6..85afc89 100644 --- a/c++/examples/create.cpp +++ b/c++/examples/create.cpp @@ -16,13 +16,19 @@ * This example writes a dataset to a new HDF5 file. */ -#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 "H5Cpp.h" #ifndef H5_NO_NAMESPACE |