From f5e136ca4c4f757a3b7fd39a120dc848ea5d47bc Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 3 Apr 2014 19:52:00 +0000 Subject: 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 --- qpid/cpp/src/tests/qpid-receive.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qpid/cpp/src/tests/qpid-receive.cpp') 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 { -- cgit v1.2.1