summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Exception.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-01-06 21:34:16 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-01-06 21:34:16 (GMT)
commitf53f6dffa62dd731b7104c6d56fe8f859b7fa50c (patch)
tree66b6eddd10f7f749e240e9636374021b22a1d66c /c++/src/H5Exception.h
parent8eb9d884e3a4e4af4578ee546d0e4337c603b771 (diff)
downloadhdf5-f53f6dffa62dd731b7104c6d56fe8f859b7fa50c.zip
hdf5-f53f6dffa62dd731b7104c6d56fe8f859b7fa50c.tar.gz
hdf5-f53f6dffa62dd731b7104c6d56fe8f859b7fa50c.tar.bz2
[svn-r19923] BZ 1165: Implemented declaration change;
A static std::basic_string constructed in the Exception class. This static isn't one that can be be destructed by H5Library::close(), but rather gets cleaned up as part of the STL std::basic_string static destructor when the HDF5 DLL is detached (WINDOWS). Looking at the rest of the Exception code, the DEFAULT_MSG doesn't really need to be a std::basic_string. Remove the static constructor and no destructor required. Tested: local linux - will wait for Nightly Dailies before bringing to 1.8
Diffstat (limited to 'c++/src/H5Exception.h')
-rw-r--r--c++/src/H5Exception.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h
index c17ff5b..b4af2ba 100644
--- a/c++/src/H5Exception.h
+++ b/c++/src/H5Exception.h
@@ -84,7 +84,7 @@ class H5_DLLCPP Exception {
protected:
// Default value for detail_message
- static const H5std_string DEFAULT_MSG;
+ static const char DEFAULT_MSG[];
};
class H5_DLLCPP FileIException : public Exception {