diff options
author | Manuel Teira Paz <mteira@apache.org> | 2009-03-05 16:09:52 +0000 |
---|---|---|
committer | Manuel Teira Paz <mteira@apache.org> | 2009-03-05 16:09:52 +0000 |
commit | 0baca96738da30a23a11755d8343007fdc8340ec (patch) | |
tree | 6a4219623471bdf08cb407479481dd1a4e408aac /qpid/cpp/src | |
parent | 4288479b49a2b2cad4bd778d34ad5549e11bc1d7 (diff) | |
download | qpid-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.cpp | 3 |
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(); } |