diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-04 06:41:18 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-04 06:41:18 (GMT) |
commit | 943993af8357c963d4da4141e7e68f5eaa59e21a (patch) | |
tree | 7d708506eef3d46550003c0e948affc004149e89 /c++/src/H5IdComponent.h | |
parent | aa13c0501d781ccbe83b19bc795e0c0241559789 (diff) | |
download | hdf5-943993af8357c963d4da4141e7e68f5eaa59e21a.zip hdf5-943993af8357c963d4da4141e7e68f5eaa59e21a.tar.gz hdf5-943993af8357c963d4da4141e7e68f5eaa59e21a.tar.bz2 |
[svn-r26726] Purpose: Fix warnings HDFFV-8658
Description: (r26457)
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/H5IdComponent.h')
-rw-r--r-- | c++/src/H5IdComponent.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/c++/src/H5IdComponent.h b/c++/src/H5IdComponent.h index 986e50a..8e1e572 100644 --- a/c++/src/H5IdComponent.h +++ b/c++/src/H5IdComponent.h @@ -62,11 +62,18 @@ class H5_DLLCPP IdComponent { // Sets the identifier of this object to a new value. void setId(const hid_t new_id); + // *** 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 an object to hold an HDF5 identifier. IdComponent( const hid_t h5_id ); // Copy constructor: makes copy of the original IdComponent object. - IdComponent( const IdComponent& original ); + // IdComponent( const IdComponent& original ); #ifndef DOXYGEN_SHOULD_SKIP_THIS // Pure virtual function for there are various H5*close for the |