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 | 929a5d81aebf894e30990c0c77994a1e17a13649 (patch) | |
| tree | a4bd34aed51f1a50bc8f2c1982d3f8c106eb905a /cpp/src/qpid/client/SessionImpl.cpp | |
| parent | 7506ad8980081ce43ffab3931a19cd0b52e29bb6 (diff) | |
| download | qpid-python-929a5d81aebf894e30990c0c77994a1e17a13649.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/qpid@750488 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/client/SessionImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp index 383c138dcd..5df376efa0 100644 --- a/cpp/src/qpid/client/SessionImpl.cpp +++ b/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(); } |
