summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/assert.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/assert.cpp b/qpid/cpp/src/qpid/assert.cpp
index 82db22b0cc..dba81f3873 100644
--- a/qpid/cpp/src/qpid/assert.cpp
+++ b/qpid/cpp/src/qpid/assert.cpp
@@ -32,7 +32,7 @@ void assert_fail(char const * expr, char const * function, char const * file, lo
msg << "Internal error: " << expr << " in function " << function
<< "(" << file << ":" << line << ")";
#ifdef NDEBUG
- throw framing::InternalErrorException(msg);
+ throw framing::InternalErrorException(msg.str());
#else
std::cerr << msg << std::endl;
abort();