summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorManuel Teira Paz <mteira@apache.org>2009-03-05 16:09:52 +0000
committerManuel Teira Paz <mteira@apache.org>2009-03-05 16:09:52 +0000
commit0baca96738da30a23a11755d8343007fdc8340ec (patch)
tree6a4219623471bdf08cb407479481dd1a4e408aac /qpid/cpp/src
parent4288479b49a2b2cad4bd778d34ad5549e11bc1d7 (diff)
downloadqpid-python-0baca96738da30a23a11755d8343007fdc8340ec.tar.gz
In qpid::client::SessionImpl
Force the construction of a sys::ExceptionHolder to avoid the Sun Compiler to throw an ambiguity error, since it things that sys::ExceptionHolder and ClosedException are convertible one to the other. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750488 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/client/SessionImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/SessionImpl.cpp b/qpid/cpp/src/qpid/client/SessionImpl.cpp
index 383c138dcd..5df376efa0 100644
--- a/qpid/cpp/src/qpid/client/SessionImpl.cpp
+++ b/qpid/cpp/src/qpid/client/SessionImpl.cpp
@@ -745,7 +745,8 @@ void SessionImpl::assertOpen() const
void SessionImpl::handleClosed()
{
- demux.close(exceptionHolder.empty() ? new ClosedException() : exceptionHolder);
+ demux.close(exceptionHolder.empty() ?
+ sys::ExceptionHolder(new ClosedException()) : exceptionHolder);
results.close();
}