Skip to content

H5::BaseHDF5: change ref-count behaviour of hid_t ctor#459

Merged
stoewer merged 12 commits intoG-Node:masterfrom
gicmo:base_ctr
Feb 4, 2015
Merged

H5::BaseHDF5: change ref-count behaviour of hid_t ctor#459
stoewer merged 12 commits intoG-Node:masterfrom
gicmo:base_ctr

Conversation

@gicmo
Copy link
Member

@gicmo gicmo commented Feb 3, 2015

BaseHDF5::BaseHDF5(hid_t) used to do a inc(), i.e making a
copy of the object. It now takes over ownership by not doing that
inc(). This allows code like Group g = H5Gopen() instead of
the longer versionhid_t o = H5Gopen(); Group g = o; H5Idec_ref(o);.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.14%) to 86.12% when pulling 9c4c725 on gicmo:base_ctr into 32a20c2 on G-Node:master.

stoewer added a commit that referenced this pull request Feb 4, 2015
H5::BaseHDF5: change ref-count behaviour of hid_t ctor
@stoewer stoewer merged commit 2481733 into G-Node:master Feb 4, 2015
@gicmo gicmo removed the in progress label Feb 4, 2015
@gicmo gicmo deleted the base_ctr branch February 8, 2015 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants