summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/BatchOneways.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/operations/BatchOneways.cpp')
-rw-r--r--cpp/test/Ice/operations/BatchOneways.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/test/Ice/operations/BatchOneways.cpp b/cpp/test/Ice/operations/BatchOneways.cpp
index 05e2f391dde..2776f8cf445 100644
--- a/cpp/test/Ice/operations/BatchOneways.cpp
+++ b/cpp/test/Ice/operations/BatchOneways.cpp
@@ -147,7 +147,13 @@ batchOneways(const Test::MyClassPrxPtr& p)
initData.properties = p->ice_getCommunicator()->getProperties()->clone();
BatchRequestInterceptorIPtr interceptor = ICE_MAKE_SHARED(BatchRequestInterceptorI);
-#ifdef ICE_CPP11_COMPILER
+#if defined(ICE_CPP11_MAPPING)
+ initData.batchRequestInterceptor =
+ [=](const Ice::BatchRequest& request, int count, int size)
+ {
+ interceptor->enqueue(request, count, size);
+ };
+#elif defined(ICE_CPP11_COMPILER)
// Ensure lambda factory method works.
initData.batchRequestInterceptor = Ice::newBatchRequestInterceptor(
[=](const Ice::BatchRequest& request, int count, int size)