From c8bd13216c537a811dc6b770b2d6631ed230ee2c Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Tue, 28 Oct 2014 15:02:03 +0100 Subject: Fixed ICE-5548: fixed C++11 support to maintain binary compatibility between C++11 and C++03 compiled code --- cpp/src/slice2cpp/Gen.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 57f3337c06f..7b195708399 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -3664,17 +3664,11 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) } } - H.zeroIndent(); - H << nl << "#ifdef ICE_CPP11"; - H.restoreIndent(); - + H << nl << "// Only supported with C++ 11 support enabled"; H << nl << "virtual ::Ice::AsyncResultPtr begin_" << name << spar << paramsDeclAMI << "const ::IceInternal::Function& exception" - << "const ::IceInternal::Function& sent = ::IceInternal::Function()" << epar << " = 0;"; - - H.zeroIndent(); - H << nl << "#endif"; - H.restoreIndent(); + << "const ::IceInternal::Function& sent = ::IceInternal::Function()" + << epar << " = 0;"; H << sp << nl << "virtual ::Ice::AsyncResultPtr begin_" << name << spar << paramsDeclAMI << epar << " = 0;"; -- cgit v1.2.3