From 86dfb3e98b4c680db636bdbcd1fb63e7b0784f2b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Sat, 18 Aug 2007 03:34:09 +0000 Subject: * src/qpid/framing/MethodHolder.h * src/qpid/framing/Blob.h - add empty() test - get() returns 0 when empty * src/qpid/client/Response.h: assert checks. * src/tests/perftest.cpp: default to listen and publish. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@567221 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Response.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/client') diff --git a/cpp/src/qpid/client/Response.h b/cpp/src/qpid/client/Response.h index ad37d7c0f4..7866df916c 100644 --- a/cpp/src/qpid/client/Response.h +++ b/cpp/src/qpid/client/Response.h @@ -39,7 +39,8 @@ public: template T& as() { framing::AMQMethodBody* response(future->getResponse()); - return dynamic_cast(*response); + assert(response); + return *boost::polymorphic_downcast(response); } template bool isA() { -- cgit v1.2.1