From a7e736a5c843c9e3dec25b8eb770c9b337c139f6 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Sun, 1 Jul 2012 03:48:05 +0000 Subject: 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 --- qpid/cpp/src/qpid/log/posix/SinkOptions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src') 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 #include #include #include +#include + 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(value)); return i->second; } -- cgit v1.2.1