summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/qpid-receive.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2014-04-03 19:52:00 +0000
committerAndrew Stitcher <astitcher@apache.org>2014-04-03 19:52:00 +0000
commitf5e136ca4c4f757a3b7fd39a120dc848ea5d47bc (patch)
tree28c899d8be4eba33742e09d000fe7e120befe7a9 /qpid/cpp/src/tests/qpid-receive.cpp
parent13fc613cf8d34e788e2d81958c348b0997417cfe (diff)
downloadqpid-python-f5e136ca4c4f757a3b7fd39a120dc848ea5d47bc.tar.gz
QPID-5659: Fixes to compile with C++11 (needed to compile with clang on FreeBSD 10)
- shared_ptr no longer has a default conversion to bool. - Change in default destructor semantics: by default destructors are now not allowed to throw exceptions. - stringstream no longer has a default conversion to string. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1584361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/qpid-receive.cpp')
-rw-r--r--qpid/cpp/src/tests/qpid-receive.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/qpid-receive.cpp b/qpid/cpp/src/tests/qpid-receive.cpp
index ab26d3d9b5..fb1db05d99 100644
--- a/qpid/cpp/src/tests/qpid-receive.cpp
+++ b/qpid/cpp/src/tests/qpid-receive.cpp
@@ -136,8 +136,7 @@ struct Options : public qpid::Options
if (address.empty()) throw qpid::Exception("Address must be specified!");
qpid::log::Logger::instance().configure(log);
if (help) {
- std::ostringstream msg;
- std::cout << msg << *this << std::endl << std::endl
+ std::cout << *this << std::endl << std::endl
<< "Drains messages from the specified address" << std::endl;
return false;
} else {