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 | 23dc8cba7549b3fd5a993c1e73e1cab10db9bc01 (patch) | |
| tree | a13dbb2d5e5e5e0fa9d40f39ff568b0a7ad23fb7 /cpp/src | |
| parent | c7dfca2b82359126057a3533822fad2f92a9b257 (diff) | |
| download | qpid-python-23dc8cba7549b3fd5a993c1e73e1cab10db9bc01.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/qpid@1355847 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/log/posix/SinkOptions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/log/posix/SinkOptions.cpp b/cpp/src/qpid/log/posix/SinkOptions.cpp index 8459938e5c..d3db5f3cdf 100644 --- a/cpp/src/qpid/log/posix/SinkOptions.cpp +++ b/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; } |
