summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Object.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-12-10 10:06:12 +0100
committerJose <jose@zeroc.com>2015-12-10 10:06:12 +0100
commitbbde2ba93a56bb6adf4d06ecb2f0f5ca04eb308d (patch)
treef0e9a5eb9287fb92a53a02ab34fa19b6325cc4a4 /cpp/src/Ice/Object.cpp
parentC++11 mapping server side input parameter fixes (diff)
downloadice-bbde2ba93a56bb6adf4d06ecb2f0f5ca04eb308d.tar.bz2
ice-bbde2ba93a56bb6adf4d06ecb2f0f5ca04eb308d.tar.xz
ice-bbde2ba93a56bb6adf4d06ecb2f0f5ca04eb308d.zip
C++11 mapping server side input parameter fixes
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r--cpp/src/Ice/Object.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp
index 24ba8ea42b7..7378d7e4e75 100644
--- a/cpp/src/Ice/Object.cpp
+++ b/cpp/src/Ice/Object.cpp
@@ -53,7 +53,11 @@ const string __Ice__Object_ids[] =
}
bool
+#ifdef ICE_CPP11_MAPPING
+Ice::Object::ice_isA(string s, const Current&) const
+#else
Ice::Object::ice_isA(const string& s, const Current&) const
+#endif
{
return s == __Ice__Object_ids[0];
}
@@ -178,7 +182,7 @@ Ice::Object::ice_dispatch(Request& request, const DispatchInterceptorAsyncCallba
IceInternal::Incoming& in = dynamic_cast<IceInternal::IncomingRequest&>(request)._in;
-
+
PushCb pusbCb(in, cb);
in.startOver(); // may raise ResponseSentException
return __dispatch(in, in.getCurrent());
@@ -193,7 +197,7 @@ Ice::Object::__dispatch(Incoming& in, const Current& current)
if(r.first == r.second)
{
throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
- }
+ }
switch(r.first - __all)
{
@@ -237,32 +241,32 @@ Ice::Object::__write(IceInternal::BasicStream* os) const
__writeImpl(os);
os->endWriteObject();
}
-
-void
+
+void
Ice::Object::__read(IceInternal::BasicStream* is)
{
is->startReadObject();
__readImpl(is);
is->endReadObject(false);
}
-
-void
+
+void
Ice::Object::__write(const OutputStreamPtr& os) const
{
os->startObject(0);
__writeImpl(os);
os->endObject();
}
-
-void
+
+void
Ice::Object::__read(const InputStreamPtr& is)
{
is->startObject();
__readImpl(is);
is->endObject(false);
}
-
-void
+
+void
Ice::Object::__writeImpl(const OutputStreamPtr&) const
{
throw MarshalException(__FILE__, __LINE__, "class was not generated with stream support");