summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-rw-r--r--c++/src/H5File.cpp3
-rw-r--r--c++/src/H5File.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp
index 4b92806..116ba67 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -23,6 +23,9 @@
namespace H5 {
#endif
+// Default constructor
+H5File::H5File() : IdComponent() {}
+
// Creates or opens an HDF5 file depending on the parameter flags.
H5File::H5File( const string& name, unsigned int flags, const FileCreatPropList& create_plist, const FileAccPropList& access_plist ) : IdComponent()
{
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index 8e5d46a..ee7017f 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -8,6 +8,9 @@ namespace H5 {
class __DLLCPP__ H5File : public IdComponent, public CommonFG {
public:
+ // Default constructor
+ H5File();
+
// copy constructor: makes a copy of the original H5File object.
H5File(const H5File& original );