summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-18 03:34:09 +0000
committerAlan Conway <aconway@apache.org>2007-08-18 03:34:09 +0000
commit86dfb3e98b4c680db636bdbcd1fb63e7b0784f2b (patch)
tree1820a8750ed9e862395fc5a5c61d2660a703336a /cpp/src/qpid/client
parent857c70fa8b6ca7e9a3b0544e1fd746fdf2752e9d (diff)
downloadqpid-python-86dfb3e98b4c680db636bdbcd1fb63e7b0784f2b.tar.gz
* 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
Diffstat (limited to 'cpp/src/qpid/client')
-rw-r--r--cpp/src/qpid/client/Response.h3
1 files changed, 2 insertions, 1 deletions
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 <class T> T& as()
{
framing::AMQMethodBody* response(future->getResponse());
- return dynamic_cast<T&>(*response);
+ assert(response);
+ return *boost::polymorphic_downcast<T*>(response);
}
template <class T> bool isA()
{