diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-07-30 06:28:53 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-07-30 06:28:53 +0000 |
commit | 0a5cb139d56079318a1779ef217408e3fea97a12 (patch) | |
tree | 70d024dbdf3383f4e5fbee5d8ed40f75769b0449 /cpp/src | |
parent | d1a58e417bde9265a2141dcf71db88c8d7fbd455 (diff) | |
download | qpid-python-0a5cb139d56079318a1779ef217408e3fea97a12.tar.gz |
Removed errno from a default parameter as I'm not convinced that this is
always portable as errno could be a macro
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680918 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/Exception.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/Exception.h b/cpp/src/qpid/Exception.h index 4e91f85ddb..c7ddcec109 100644 --- a/cpp/src/qpid/Exception.h +++ b/cpp/src/qpid/Exception.h @@ -34,7 +34,7 @@ namespace qpid { /** Get the error message for a system number err, e.g. errno. */ -std::string strError(int err=errno); +std::string strError(int err); /** * Base class for Qpid runtime exceptions. @@ -55,7 +55,8 @@ class Exception : public std::exception /** Exception that includes an errno message. */ struct ErrnoException : public Exception { - ErrnoException(const std::string& msg, int err=errno) : Exception(msg+": "+strError(err)) {} + ErrnoException(const std::string& msg, int err) : Exception(msg+": "+strError(err)) {} + ErrnoException(const std::string& msg) : Exception(msg+": "+strError(errno)) {} }; struct SessionException : public Exception { |