summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-07-30 06:28:53 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-07-30 06:28:53 +0000
commit57dbdb1704d6e1c0ea937bfdf81111cb1c9cad6f (patch)
treeddc8ffd81640aa5b4f54a076243702164bb72fd1 /qpid/cpp/src
parent01f30c6010ee6f379b84e5fac831ded622e349f0 (diff)
downloadqpid-python-57dbdb1704d6e1c0ea937bfdf81111cb1c9cad6f.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@680918 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/Exception.h5
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 {