diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-03-15 06:47:56 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-03-15 06:47:56 (GMT) |
commit | a382658282915afb7c288ef80b4d583a8ecc94fb (patch) | |
tree | 224facc01094af994eada1ba1535058b5c22539a /c++/src/H5Location.h | |
parent | 66a7cc1289bcae4d2ad91d500b8b1f636cc7ffd6 (diff) | |
download | hdf5-a382658282915afb7c288ef80b4d583a8ecc94fb.zip hdf5-a382658282915afb7c288ef80b4d583a8ecc94fb.tar.gz hdf5-a382658282915afb7c288ef80b4d583a8ecc94fb.tar.bz2 |
[svn-r26457] Purpose: Fix warnings HDFFV-8658
Description:
The following two constructors of classes: AbstractDs, IdComponent,
H5Location, and H5Object are no longer appropriate after the data member
"id" had been moved from IdComponent to the sub-classes.
The copy constructors are noop and will be generated by the compilers if
needed so they can be removed in 1.8.15 without effecting applications. The
other constructors will be removed from 1.10 release, and then from 1.8 if
their removal does not raise any problems in at least two 1.10 releases.
<Classname>(const hid_t h5_id);
<Classname>(const <Classname>& original);
Deprecation warnings are added to each of these classes.
The other classes are changed to call the default constructor instead of
one of the constructors above.
Platforms tested:
Linux/64 (platypus)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5Location.h')
-rw-r--r-- | c++/src/H5Location.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/c++/src/H5Location.h b/c++/src/H5Location.h index e015825..15b9ffd 100644 --- a/c++/src/H5Location.h +++ b/c++/src/H5Location.h @@ -138,13 +138,21 @@ class H5_DLLCPP H5Location : public IdComponent { // Default constructor H5Location(); +#ifndef DOXYGEN_SHOULD_SKIP_THIS + + // *** Deprecation warning *** + // The following two constructors are no longer appropriate after the + // data member "id" had been moved to the sub-classes. + // The copy constructor is a noop and is removed in 1.8.15 and the + // other will be removed from 1.10 release, and then from 1.8 if its + // removal does not raise any problems in two 1.10 releases. + // Creates a copy of an existing object giving the location id. H5Location(const hid_t loc_id); // Copy constructor. H5Location(const H5Location& original); -#ifndef DOXYGEN_SHOULD_SKIP_THIS // Creates a reference to an HDF5 object or a dataset region. void p_reference(void* ref, const char* name, hid_t space_id, H5R_type_t ref_type) const; |