diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-07-01 03:48:05 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-07-01 03:48:05 +0000 |
| commit | a7e736a5c843c9e3dec25b8eb770c9b337c139f6 (patch) | |
| tree | 0dc127f0c9a0184bba4edffa6e4aafca38c0c00e /qpid/cpp | |
| parent | 041f113a39a59d7e11c6663100fb5e6c49b7dacd (diff) | |
| download | qpid-python-a7e736a5c843c9e3dec25b8eb770c9b337c139f6.tar.gz | |
NO-JIRA: Fixed erroneous use of operator+
operator+(const char*, int) was used where
operator+(std::string&, std::string&) was meant
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355847 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/log/posix/SinkOptions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp b/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp index 8459938e5c..d3db5f3cdf 100644 --- a/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp +++ b/qpid/cpp/src/qpid/log/posix/SinkOptions.cpp @@ -22,11 +22,14 @@ #include "qpid/log/OstreamOutput.h" #include "qpid/memory.h" #include "qpid/Exception.h" + #include <iostream> #include <map> #include <string> #include <syslog.h> +#include <boost/lexical_cast.hpp> + using std::string; using qpid::Exception; @@ -90,7 +93,7 @@ public: string name(int value) const { ByValue::const_iterator i = byValue.find(value); if (i == byValue.end()) - throw Exception("Not a valid syslog value: " + value); + throw Exception("Not a valid syslog value: " + boost::lexical_cast<string>(value)); return i->second; } |
