diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-10-31 16:01:35 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-10-31 16:01:35 (GMT) |
commit | 1398cc0eef0cfcc69835edb5831681a573aadd14 (patch) | |
tree | acad548811604bafb7842c394573647116add890 /c++/src/H5PredType.cpp | |
parent | 356626bd348bb62193fffa2bfe63f2cc8c319fde (diff) | |
download | hdf5-1398cc0eef0cfcc69835edb5831681a573aadd14.zip hdf5-1398cc0eef0cfcc69835edb5831681a573aadd14.tar.gz hdf5-1398cc0eef0cfcc69835edb5831681a573aadd14.tar.bz2 |
[svn-r4580]
Purpose:
Bug fixing
Description:
+ added operator= to PredType
+ removed 'using namespace std' from H5RefCounter.cpp because it's not
used and leaving it there requires #include some standard header file
+ added 'using namespace std' in H5Exception.cpp
Platforms tested:
SunOS 5.7 (arabica)
Windows 98
Diffstat (limited to 'c++/src/H5PredType.cpp')
-rw-r--r-- | c++/src/H5PredType.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/c++/src/H5PredType.cpp b/c++/src/H5PredType.cpp index 0d0ddcb..d883ba5 100644 --- a/c++/src/H5PredType.cpp +++ b/c++/src/H5PredType.cpp @@ -27,6 +27,13 @@ PredType::PredType( const hid_t predtype_id ) : AtomType( predtype_id ) // Copy constructor: makes a copy of this PredType object. PredType::PredType( const PredType& original ) : AtomType( original ) {} +// Makes a copy of the predefined type and stores the new +// id in the left hand side object. +DataType& PredType::operator=( const PredType& rhs ) +{ + return(DataType::operator=(rhs)); +} + const PredType PredType::NotAtexit; // only for atexit/global dest. problem // Definition of pre-defined types @@ -461,7 +468,7 @@ void PredType::commit( H5Object& loc, const string& name ) bool PredType::committed() { throw DataTypeIException("PredType::committed", "Error: Attempting to check for commit status on a predefined datatype." ); - return (-1); + return (0); } // Default destructor |