You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mt...@apache.org on 2009/03/05 17:09:52 UTC

svn commit: r750488 - /qpid/trunk/qpid/cpp/src/qpid/client/SessionImpl.cpp

Author: mteira
Date: Thu Mar  5 16:09:52 2009
New Revision: 750488

URL: http://svn.apache.org/viewvc?rev=750488&view=rev
Log:
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.


Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/SessionImpl.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/SessionImpl.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/SessionImpl.cpp?rev=750488&r1=750487&r2=750488&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/SessionImpl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/SessionImpl.cpp Thu Mar  5 16:09:52 2009
@@ -745,7 +745,8 @@
 
 void SessionImpl::handleClosed()
 {
-    demux.close(exceptionHolder.empty() ? new ClosedException() : exceptionHolder);
+    demux.close(exceptionHolder.empty() ?
+                sys::ExceptionHolder(new ClosedException()) : exceptionHolder);
     results.close();
 }
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org