diff options
Diffstat (limited to 'cpp/rubygen/framing.0-10/Session.rb')
-rw-r--r-- | cpp/rubygen/framing.0-10/Session.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/rubygen/framing.0-10/Session.rb b/cpp/rubygen/framing.0-10/Session.rb index 5abed07150..48a1608af0 100644 --- a/cpp/rubygen/framing.0-10/Session.rb +++ b/cpp/rubygen/framing.0-10/Session.rb @@ -163,6 +163,7 @@ class SessionNoKeywordGen < CppGen include "qpid/client/SessionImpl.h" include "qpid/client/MessageImpl.h" include "qpid/client/PrivateImplPrivate.h" + include "qpid/client/CompletionImpl.h" namespace(@namespace) { genl "using namespace framing;" session_methods(sync_default).each { |m| @@ -175,7 +176,7 @@ class SessionNoKeywordGen < CppGen genl "body.setSync(sync);" sendargs="body" sendargs << ", *privateImplGetPtr(content)" if m.content - async_retval="#{m.return_type(true)}(impl->send(#{sendargs}), impl)" + async_retval="#{m.return_type(true)}(new CompletionImpl(impl->send(#{sendargs}), impl))" if @async then genl "return #{async_retval};" else |