summaryrefslogtreecommitdiffstats
path: root/c++/examples/compound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples/compound.cpp')
-rw-r--r--c++/examples/compound.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/c++/examples/compound.cpp b/c++/examples/compound.cpp
index 994a036..de48590 100644
--- a/c++/examples/compound.cpp
+++ b/c++/examples/compound.cpp
@@ -36,14 +36,13 @@
#ifndef H5_NO_NAMESPACE
using namespace H5;
- using H5_std::string;
#endif
-const string FILE_NAME( "SDScompound.h5" );
-const string DATASET_NAME( "ArrayOfStructures" );
-const string MEMBER1( "a_name" );
-const string MEMBER2( "b_name" );
-const string MEMBER3( "c_name" );
+const H5std_string FILE_NAME( "SDScompound.h5" );
+const H5std_string DATASET_NAME( "ArrayOfStructures" );
+const H5std_string MEMBER1( "a_name" );
+const H5std_string MEMBER2( "b_name" );
+const H5std_string MEMBER3( "c_name" );
const int LENGTH = 10;
const int RANK = 1;
@@ -124,7 +123,7 @@ int main(void)
if( member1_class == H5T_FLOAT )
{
FloatType member2 = mtype1.getMemberFloatType( 2 );
- string norm_string;
+ H5std_string norm_string;
H5T_norm_t norm = member2.getNorm( norm_string );
cout << "Normalization type is " << norm_string << endl;
}