summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Group.h
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2024-03-09 05:09:47 (GMT)
committerGitHub <noreply@github.com>2024-03-09 05:09:47 (GMT)
commit16255aa8c3ff923bb33b54a77607bc5d35fabef0 (patch)
tree3f2e391a35d84f840532f62ce5eaff7c72b0d9b9 /c++/src/H5Group.h
parent114d2d02112e52cfdd52c6db1e4e590a6ebb9971 (diff)
downloadhdf5-16255aa8c3ff923bb33b54a77607bc5d35fabef0.zip
hdf5-16255aa8c3ff923bb33b54a77607bc5d35fabef0.tar.gz
hdf5-16255aa8c3ff923bb33b54a77607bc5d35fabef0.tar.bz2
Fixed -Wdeprecated-copy-dtor warnings by implementing a copy assignment operator (#3306)
Example warning was: warning: definition of implicit copy assignment operator for 'Group' is deprecated because it has a user-declared destructor [-Wdeprecated-copy-dtor]
Diffstat (limited to 'c++/src/H5Group.h')
-rw-r--r--c++/src/H5Group.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5Group.h b/c++/src/H5Group.h
index cb9b092..9c89dd1 100644
--- a/c++/src/H5Group.h
+++ b/c++/src/H5Group.h
@@ -67,6 +67,9 @@ class H5_DLLCPP Group : public H5Object, public CommonFG {
// Destructor
virtual ~Group() override;
+ // Copy assignment operator.
+ Group &operator=(const Group &original);
+
// Creates a copy of an existing group using its id.
Group(const hid_t group_id);