diff options
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 4f40b2ff6d1..7ba4f20251e 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -5667,6 +5667,18 @@ Slice::Gen::AsyncImplVisitor::visitOperation(const OperationPtr& p) if(!throws.empty()) { H << nl << "virtual void ice_exception(const ::std::exception&);"; + + H.zeroIndent(); + H << nl << "#if defined(__BCPLUSPLUS__)"; + H.restoreIndent(); + H << nl << "// COMPILERFIX: Avoid compiler warnings with C++Builder 2010"; + H << nl << "virtual void ice_exception()"; + H << sb; + H << nl << "::IceInternal::IncomingAsync::ice_exception();"; + H << eb; + H.zeroIndent(); + H << nl << "#endif"; + H.restoreIndent(); } H << eb << ';'; |