diff options
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/Exception.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/Exception.h b/qpid/cpp/src/qpid/Exception.h index 4e91f85ddb..c7ddcec109 100644 --- a/qpid/cpp/src/qpid/Exception.h +++ b/qpid/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 { |
