summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSpace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5DataSpace.cpp')
-rw-r--r--c++/src/H5DataSpace.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/c++/src/H5DataSpace.cpp b/c++/src/H5DataSpace.cpp
index dc4ed9a..4e9533f 100644
--- a/c++/src/H5DataSpace.cpp
+++ b/c++/src/H5DataSpace.cpp
@@ -68,6 +68,14 @@ void DataSpace::copy( const DataSpace& like_space )
}
}
+// Makes a copy of the dataspace on the right hand side and stores
+// the new id in the left hand side object.
+DataSpace& DataSpace::operator=( const DataSpace& rhs )
+{
+ copy(rhs);
+ return(*this);
+}
+
// Determines whether this dataspace is a simple dataspace.
bool DataSpace::isSimple () const
{