summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/retry/SystemFailure.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/retry/SystemFailure.h')
-rw-r--r--cpp/test/Ice/retry/SystemFailure.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/test/Ice/retry/SystemFailure.h b/cpp/test/Ice/retry/SystemFailure.h
index ad54020f8a0..01967bb85ec 100644
--- a/cpp/test/Ice/retry/SystemFailure.h
+++ b/cpp/test/Ice/retry/SystemFailure.h
@@ -29,7 +29,12 @@ public:
return "SystemFailure";
}
-#ifndef ICE_CPP11_MAPPING
+#ifdef ICE_CPP11_MAPPING
+ virtual IceUtil::Exception* ice_cloneImpl() const
+ {
+ return new SystemFailure(*this);
+ }
+#else
virtual SystemException* ice_clone() const
{
return new SystemFailure(*this);
@@ -40,6 +45,7 @@ public:
{
throw SystemFailure(*this);
}
+
};
#endif